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.
The scaffolding includes:
- package files in the src layout format
pyproject.tomlwith dependency groupsCHANGELOG.md,CONTRIBUTING.md,.gitignore, andREADME.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.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyprefab-0.6.2.tar.gz | 6.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyprefab-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 MB
Release files / pyprefab-0.6.2.tar.gz
| Download URL | pyprefab-0.6.2.tar.gz |
|---|---|
| Size | 6.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b79c957b46fa86561ce80f08e8f8aa2d1034aaf646f5cd31e23662d63c117c9
|
|
BLAKE2b-256 checksum How to use checksums |
9d22f3cb995a70d1c450881f0bb967a7ed6b8c89d3cf64f14f93f4b2477dfe2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Apr 28, 2026.
Transparency logRelease files / pyprefab-0.6.2-py3-none-any.whl
| Download URL | pyprefab-0.6.2-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0a728f3aed5dfb867279a3905e629c7aa2d177ef01004c3c8466fac88acd1c8
|
|
BLAKE2b-256 checksum How to use checksums |
09a98ccaacab786020c22104f74b70eea738bbbdeaa078dbf59a92a20a11f500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Apr 28, 2026.
Transparency log