- π Modern Python project structure
- π¦ Pre-configured pyproject.toml
- π€ ML server template with LitServe
- π§ͺ Testing setup with pytest
- π· CI/CD with GitHub Actions
- π Auto-generated documentation
- π― Type hints and static type checking
- π Code formatting with ruff and isort
- π Linting with ruff
python-project-template/
βββ .github/
β βββ workflows/ # GitHub Actions workflows
βββ docs/ # Documentation
βββ src/ # Source code
β βββ python_project_template/
βββ tests/ # Test files
βββ .gitignore
βββ LICENSE
βββ README.md
βββ pyproject.toml # Project metadata and dependencies
βββ setup.py # Package installation
git clone https://github.com/aniketmaurya/python-project-template.git
cd python-project-template
pip install .
git clone https://github.com/aniketmaurya/python-project-template.git
cd python-project-template
pip install -e ".[dev]"
from python_project_template import do_something_awesome
print(do_something_awesome())
- Clone the repository
git clone https://github.com/aniketmaurya/python-project-template.git
cd python-project-template
- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install development dependencies
pip install -e ".[dev]"
pytest tests/
Contributions are always welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please make sure to update tests as appropriate and follow the existing coding style.
MIT - Feel free to use this template for your projects!