Skip to main content

Feature-rich Python project template designed for robustness and ease of use.

Project description

Welcome to python-template-project

A feature-rich Python project template with with auto-generated CLI, GUI and parameterized configuration.

Github CI Status GitHub release Read the Docs License GitHub issues PyPI

This template provides a solid foundation for your next Python project, incorporating best practices for testing, automation, and distribution. It streamlines the development process with a comprehensive set of pre-configured tools and workflows, allowing you to focus on writing code.

Installation

Download from PyPI.

💾 For more installation options see install.

pip install python-template-project

Run GUI from command line

python-template-project-gui

How to use this template

🐍 For details, see the Getting Started guide.

Feature overview

  • 📦 Package Management: Utilizes uv, an extremely fast Python package manager, with dependencies managed in pyproject.toml.
  • Code Formatting and Linting: Pre-commit hook with the RUFF auto-formatter to ensure consistent code style.
  • 🧪 Testing: Unit testing framework with pytest.
  • 📊 Code coverage reports using codecov
  • 🔄 CI/CD: GitHub Actions for automated builds (Windows, macOS), unit tests, and code checks.
  • 💾 Automated Builds: GitHub pipeline for automatically building a Windows executable and a macOS installer.
  • 💬 Parameter-Driven Automation:
    • Automatic generation of a configuration file from parameter definitions.
    • Automatic generation of a Command-Line Interface (CLI) from the same parameters.
    • Automatic generation of CLI API documentation.
    • Automatic generation of change log using gitchangelog to keep a HISTORY.md file up to date.
  • 📃 Documentation: Configuration for publishing documentation on Read the Docs using mkdocs .
  • 🖼️ Minimalist GUI: Comes with a basic GUI based on tkinker that includes an auto-generated settings menu based on your defined parameters.
  • 🖥️ Workflow Automation: A Makefile is included to simplify and automate common development tasks.
  • 🛳️ Release pipeline: Automated releases unsing the Makefile make release command, which creates a new tag and pushes it to the remote repo. The release pipeline will automatically create a new release on GitHub and trigger a release on [PyPI](https://pypi.org.
    • setuptools is used to package the project and manage dependencies.
    • setuptools-scm is used to automatically generate the _version.py file from the pyproject.toml file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_template_project-0.1.19.tar.gz (188.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_template_project-0.1.19-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file python_template_project-0.1.19.tar.gz.

File metadata

  • Download URL: python_template_project-0.1.19.tar.gz
  • Upload date:
  • Size: 188.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for python_template_project-0.1.19.tar.gz
Algorithm Hash digest
SHA256 322c4a2f98c02abfc3d51cb40c38a168bb1cfff86690062231c4a8d11891b085
MD5 00cf1e9a09a7ae66c2071e629f7ebfb9
BLAKE2b-256 f601a7ef64bdba5211eac543d5c34582b234fe97f2560b3b31a27243893e03bb

See more details on using hashes here.

File details

Details for the file python_template_project-0.1.19-py3-none-any.whl.

File metadata

File hashes

Hashes for python_template_project-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 41a4a7104b65e70098e5aa2b3d27c57565c55992bffe2a559b0f7abef99b6164
MD5 85757caae7c5db580911a80580705ae9
BLAKE2b-256 cab43f0f96b3a868e42f37f276c02a5ae7113ccf54b75b7116b0aeddc6675104

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page