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.

Feature overview

  • Testing: Unit testing setup with pytest.
  • CI/CD: GitHub Actions for automated builds (Windows, macOS), unit tests, and code checks.
  • Code Formatting: Pre-commit hook with the black auto-formatter to ensure consistent code style.
  • Automated Builds: GitHub pipeline for automatically building a Windows executable and a macOS installer.
  • Package Management: Utilizes uv, an extremely fast Python package manager, with dependencies managed in pyproject.toml.
  • 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.
  • Documentation: Configuration for publishing documentation on Read the Docs.
  • Workflow Automation: A Makefile is included to simplify and automate common development tasks.
  • Minimalist GUI: Comes with a basic GUI based on tkinker that includes an auto-generated settings menu based on your defined parameters.

Getting started

  1. Create a new github repository.
  2. Clone github repository the into your local file system.
    git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
    
  3. Install uv package and project manager
    pip install uv
    
  4. Generate a sample project with uv
  5. Add and push the artifacts to your github repository
    git push
    
  6. Copy the content of this repository into your repository

Troubleshooting

Problems with release pipeline

If you get this error below:

/home/runner/work/_temp/xxxx_xxx.sh: line 1: .github/release_message.sh: Permission denied

You have to run these commands in your IDE Terminal or the git bash and then push the changes.

git update-index --chmod=+x ./.github/release_message.sh

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.0.tar.gz (177.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.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_template_project-0.1.0.tar.gz
  • Upload date:
  • Size: 177.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.0.tar.gz
Algorithm Hash digest
SHA256 fe6c1f998662fed74a50075ac573d6168431f031ed9cffbf30915a415c5a30f6
MD5 65135a461ce099a61f69701927d3319d
BLAKE2b-256 f020b17bb7b1d4a247e8e29d4362fdaed617fb9512379e0c7a19976e37c542cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_template_project-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a43654d86c826c3b86fa3c05aa633dc99463b9968cb3e2e51188487fb7cbb9c
MD5 36defae02f93e6bf0d1bab7d555ef45f
BLAKE2b-256 fc76c6c673f2ab6f5c74577c4bb965b0d2dbb1ebb46e4f371ed4f701207f6b2a

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