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.

The scaffolding includes:

  • project 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 workflows to publish the package to TestPyPI and PyPI

Quickstart

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

uvx pyprefab <name-of-new-package>

Otherwise, use pip or pipx to install pyprefab:

pip install pyprefab

pyprefab <name-of-new-package>

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.5.2.tar.gz (162.1 kB view details)

Uploaded Source

Built Distribution

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

pyprefab-0.5.2-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyprefab-0.5.2.tar.gz
  • Upload date:
  • Size: 162.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyprefab-0.5.2.tar.gz
Algorithm Hash digest
SHA256 74e7737db55de64597ab396efabd5303e3865bd534546f30aebacfc4f361dffc
MD5 bcace1fc3e83525ac45c68beb0d9a71b
BLAKE2b-256 bddef3af9476a67e9c99d4deb3438c1cde68c60c2ca4c56fa4b1fe16910e78c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyprefab-0.5.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.5.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyprefab-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c21ea3f6ccbee59688a4890c55530720a958a62ec0e8f3634d2850b7538fa1a5
MD5 b7d64c1f470667c277b913fd2aa1a4bf
BLAKE2b-256 aeb623be54f30b038bdfbaead7ae7ebdd4dad73e88f5aa9505ce1fdfeb3c28e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyprefab-0.5.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