https://github.com/habedi/template-python-library
A template for Python libraries 🐍
https://github.com/habedi/template-python-library
project-template python python-library python-package quality-of-life template
Last synced: 7 months ago
JSON representation
A template for Python libraries 🐍
- Host: GitHub
- URL: https://github.com/habedi/template-python-library
- Owner: habedi
- License: mit
- Created: 2024-10-04T11:06:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-03T21:55:59.000Z (10 months ago)
- Last Synced: 2025-08-03T23:36:25.553Z (10 months ago)
- Topics: project-template, python, python-library, python-package, quality-of-life, template
- Language: Makefile
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Python Library Template
[](https://github.com/habedi/template-python-library/actions/workflows/tests.yml)
[](https://codecov.io/gh/habedi/template-python-library)
[](https://www.codefactor.io/repository/github/habedi/template-python-library)
[](https://pypi.org/project/template-python-library-placeholder/)
[](https://pypi.org/project/template-python-library-placeholder/)
[](https://github.com/habedi/template-python-library)
[](https://github.com/habedi/template-python-library/blob/main/docs)
[](https://github.com/habedi/template-python-library/blob/main/LICENSE)
[](https://python-poetry.org/)
[](https://astral.sh/uv)
[](https://www.gnu.org/software/make/)
---
This is a template repository for creating new Python libraries.
It includes a basic structure, a dummy Python package, unit tests, and
GitHub Actions workflows for testing and deployment.
I am sharing this template in case others find it useful.
### Features
- **Poetry (or uv)**: for dependency management, packaging, publishing, etc.
- **Makefile**: for managing common tasks like testing, linting, and formatting.
- **GitHub Actions**: for running tests, linting, and deploying to PyPI.
- **Badges**: for showing the status of tests, code quality, version, etc.
- **Default files**: for configuration, testing, and documentation, like `.gitignore`, `README.md`, `LICENSE`, etc.
### Prerequisites
- `Python` >= 3.10
- `Poetry 2.0+` (or any other modern Python dependency manager like `uv`)
- `GNU Make`
### Usage
Use the `Use this template` button on GitHub to create a new repository based on this template.
Modify the `README.md` file and other files as needed.
Run `make help` to see all available commands for managing different tasks.
---
### Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to make a contribution.
### License
This template is licensed under the MIT License ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT)