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.18.tar.gz (186.4 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.18-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_template_project-0.1.18.tar.gz
  • Upload date:
  • Size: 186.4 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.18.tar.gz
Algorithm Hash digest
SHA256 e5ff1948910b1a0feca4ec0287a1520c26eb7d979b0b5ee194ff32b82b23e171
MD5 e4641e434ac3256c17c1212cba7563c4
BLAKE2b-256 97b0f53d882f99b7bdaeb317271b41445a9c0884c096c3d3ef1d047b79676fce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_template_project-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 b8085e072f5b80b865468f291055d4e3c1e559be58152011abc48c71d308e363
MD5 9241b89a106b9a7d03715bd9614eb279
BLAKE2b-256 c7343243d5f17df67f5ead2501c7b8563f6d0ce1acc83016db8ef1fb0b35fa77

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