A template repository for Python 🐍 projects. This template includes a recommended project structure, automated testing, and documentation generation using MkDocs.
- Standard Python project layout
- Automated virtual environment setup
- Build scripts for wheel packaging
- Integrated unit testing with pytest and coverage reporting
- Documentation generation with MkDocs
Create and activate a virtual environment, and install dependencies:
scripts/venv_setup.bat
Generate a distributable .whl
file:
scripts/build_wheel_package.bat
Execute all test cases and generate a coverage report:
scripts/run_pytests_with_report.bat
Test results and coverage reports will be available in the tests/report/
directory.
Documentation is written in Markdown and built using MkDocs. To build and serve the documentation locally:
mkdocs serve
The documentation will be available at http://localhost:8000.
src/
python_project_template/
app.py
__init__.py
tests/
test_my_package.py
scripts/
venv_setup.bat
build_wheel_package.bat
run_pytests_with_report.bat
deploy_docs_to_github.bat
docs/
index.md
reference_manual.md