Skip to main content

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.

Metadata

Release files for pyprefab 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyprefab 0.7.0
File Size Uploaded Provenance Actions
pyprefab-0.7.0.tar.gz 6.4 MB With provenance Details for pyprefab-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyprefab 0.7.0
File Interpreter ABI Platform Actions
pyprefab-0.7.0-py3-none-any.whl Python 3 none any Details for pyprefab-0.7.0-py3-none-any.whl

Total release size: 6.5 MB

Release files / pyprefab-0.7.0.tar.gz

Download URL pyprefab-0.7.0.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
692a9cc756044710092e246b3105a2eeaab52e55bfd6ce42589619dad4670064
BLAKE2b-256 checksum
How to use checksums
cffa43c80ed6b33bba26cbe14aced35151c40080db6d288ae23a74d3ae200d52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / pyprefab-0.7.0-py3-none-any.whl

Download URL pyprefab-0.7.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27da7c4d934247e2448535b78ed71458d216465407a1802cb322376a3d0f9681
BLAKE2b-256 checksum
How to use checksums
2302971abbedf9be997f34b5658a8296c97bf34a35d111987debdca841e7426e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for pyprefab 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyprefab-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page