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.21.tar.gz (198.1 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.21-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_template_project-0.1.21.tar.gz
  • Upload date:
  • Size: 198.1 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.21.tar.gz
Algorithm Hash digest
SHA256 ff4f189d771a1965a00359ef427d0d73926d10c42727618e00cd952f3c74cb8b
MD5 c5bb53d4b0842ff0028294e817017d16
BLAKE2b-256 4348155d25e5469f31a8ca55cf8ebb032f6fbf68e6f03d04d540423f2941b347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_template_project-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 eef1397dbba72a32cde82d6cce1d24870ea89c25778e0405538e31210c134738
MD5 f6bb5ee966eb925bdb85cd9030fb19d9
BLAKE2b-256 83ba9aae54e6ab2910a0d18ddd9898a490e26f0fb37efb26753d736928f374e1

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