Skip to main content

Python application template for personal use

Project description

pyprefab

A template-driven command line interface (CLI) that creates the scaffolding for a fully-functional, modern Python package. The goal of pyprefab is to get you straight to writing application code by handling project startup tasks like logging setup and creating a test harness.

pyprefab demo

The scaffolding includes:

  • package files in the src layout format
  • pyproject.toml with dependency groups
  • CHANGELOG.md, CONTRIBUTING.md, .gitignore, and README.md
  • automated package versioning with setuptools-scm
  • structlog-based pre-configured logging
  • a pytest-based test harness
  • a pre-commit configuration with common plugins like ruff for linting (optional)
  • GitHub workflow that automatically runs code checks, tests, and a test coverage report
  • GitHub workflow for publishing the package to PyPI

Quickstart

If you have uv installed, uv tool run is the fastest way to create a new Python package with pyprefab:

uvx pyprefab

Otherwise, use pip or pipx to install pyprefab:

python -m pip install pyprefab

python -m pyprefab

Project setup

See CONTRIBUTING.MD for information on setting up a local development environment for pyprefab.

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

pyprefab-0.6.2.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

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

pyprefab-0.6.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file pyprefab-0.6.2.tar.gz.

File metadata

  • Download URL: pyprefab-0.6.2.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyprefab-0.6.2.tar.gz
Algorithm Hash digest
SHA256 6b79c957b46fa86561ce80f08e8f8aa2d1034aaf646f5cd31e23662d63c117c9
MD5 051b64e0b8a3d678589cfa45f22a4216
BLAKE2b-256 9d22f3cb995a70d1c450881f0bb967a7ed6b8c89d3cf64f14f93f4b2477dfe2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyprefab-0.6.2.tar.gz:

Publisher: publish-pypi.yaml on bsweger/pyprefab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyprefab-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: pyprefab-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyprefab-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a728f3aed5dfb867279a3905e629c7aa2d177ef01004c3c8466fac88acd1c8
MD5 3c10a8c1a73ec8e47029d2808b07eed9
BLAKE2b-256 09a98ccaacab786020c22104f74b70eea738bbbdeaa078dbf59a92a20a11f500

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyprefab-0.6.2-py3-none-any.whl:

Publisher: publish-pypi.yaml on bsweger/pyprefab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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