Loading repository data…
Loading repository data…
AnalyticAce / repository
A comprehensive boilerplate for creating Python packages with modern tooling and best practices.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A comprehensive boilerplate for creating Python packages with modern tooling and best practices.
pyproject.toml├── package_name/ # Main package directory (rename this)
│ ├── __init__.py
│ ├── client.py
│ ├── config.py
│ ├── exceptions.py
│ └── utils/
├── docs/ # Documentation
│ ├── index.md
│ ├── overview.md
│ ├── setup.md
│ └── contributing.md
├── scripts/
│ └── deploy-package.sh # Deployment script
├── tests/ # Test directory
├── pyproject.toml # Project configuration
├── mkdocs.yml # Documentation configuration
├── README.md # This file (will be replaced)
├── CONTRIBUTING.md # Contribution guidelines
├── template-config.md # Template documentation
└── setup_template.py # Setup script
Run the interactive setup script:
python setup_template.py
This will prompt you for all necessary information and automatically configure the template.
Replace all placeholder variables in the following files:
README.mdpyproject.tomlmkdocs.ymlscripts/deploy-package.shCONTRIBUTING.mdRename the package directory:
mv package_name/ your_package_name/
Update imports in __init__.py files if needed
The template uses the following placeholder variables:
| Placeholder | Description | Example |
|---|---|---|
{PACKAGE_NAME} | Package name (PyPI) | my_awesome_package |
{PACKAGE_DISPLAY_NAME} | Display name | My Awesome Package |
{PACKAGE_DESCRIPTION} | Package description | A Python package for awesome things |
{AUTHOR_NAME} | Author name | John Doe |
{AUTHOR_EMAIL} | Author email | john@example.com |
{GITHUB_USERNAME} | GitHub username | johndoe |
{REPOSITORY_NAME} | Repository name | my-awesome-package |
{KEYWORD_1-4} | PyPI keywords | python, package, etc. |
See template-config.md for a complete list of variables.
After setup, develop your package by:
tests/ directorydocs/uv add your-dependency
uv remove unwanted-dependency
For publishing your package to PyPI, you'll need to configure the PYPI_API_TOKEN in your GitHub repository:
Create a PyPI API Token:
pypi-)Add to GitHub Repository Secrets:
PYPI_API_TOKENpypi-xxxxxxxxxxxx)Use the included deployment script:
./scripts/deploy-package.sh
This script handles:
Generate documentation with MkDocs:
mkdocs serve # Local development
mkdocs build # Build static files
After setting up your package, you can remove template files:
rm template-config.md setup_template.py .github/README.md
This template is licensed under the MIT License. See LICENSE for details.
Contributions to improve this template are welcome! Please see CONTRIBUTING.md for guidelines.
Happy coding! 🎉