pyptmpl
Bootstrap a new Python project with best-practice tooling, runnable with a single command:
uvx pyptmpl my-project
It scaffolds a fully-configured Python project.
Features
- Runs
uv init --libto create the project skeleton - Writes an opinionated
pyproject.toml(CalVer, beartype, ruff, basedpyright, pyrefly, coverage) - Creates a smoke test under
src/<package>/tests/ - Creates a virtual environment via
uv venv - Creates
.gitignore,.yamllint, and.vscode/settings.json - Creates a single root
justfilewith quality, test, docs, and build recipes - Creates docs/build scaffolding (
docs/,docs_sphinx/,zensical.toml,build.spec) - Creates
.secrets.baselinealongside pre-commit config for detect-secrets - Optionally downloads a license from scancode-licensedb
- Optionally installs prek
and writes
.pre-commit-config.yaml(ssort, ruff, basedpyright, pyrefly, vulture, deptry, pip-audit, coverage-100, …) - Optionally generates GitHub Actions workflows
(lint-format, tests, typecheck, quality-security, publish-pypi,
docs, sphinx-api, github-release)
and
dependabot.yml - Runs
uv sync --extra dev --extra docs --extra buildby default to generateuv.lock
Prerequisites
Usage
uvx pyptmpl [OPTIONS] [PROJECT_NAME]
positional arguments:
project_name Name of the new project (prompted if omitted)
options:
-h, --help show this help message and exit
-v, --version show program version and exit
-p VERSION, --python-version VERSION
Python version to target, e.g. 3.13 (prompted if omitted)
-d TEXT, --description TEXT
Short project description (prompted if omitted)
--no-license Skip the interactive license selection step
--no-prek Skip prek / pre-commit setup
--no-github-actions Skip GitHub Actions workflow generation
--no-sync Skip final uv sync/lockfile generation
Examples
# Fully interactive
uvx pyptmpl
# Supply all required values up front
uvx pyptmpl my-lib --python-version 3.13 --description "A cool library"
# Skip optional steps
uvx pyptmpl my-lib -p 3.13 -d "A cool library" --no-license --no-prek --no-github-actions
Project structure
pyptmpl keeps all its boilerplate in src/pyptmpl/templates/:
src/pyptmpl/templates/
├── pyproject.toml.tmpl # pyproject.toml skeleton
├── test_smoke.py.tmpl # smoke test
├── gitignore.tmpl # .gitignore entries
├── yamllint.tmpl # .yamllint config
├── vscode_settings.json.tmpl # .vscode/settings.json
├── justfile.tmpl # root justfile
├── pre-commit-config.yaml.tmpl # .pre-commit-config.yaml
├── typos.toml.tmpl # typos dictionary overrides
├── docs/index.md.tmpl # docs site landing page
├── docs/python-api.md.tmpl # API docs page
├── docs_sphinx/conf.py.tmpl # Sphinx configuration
├── docs_sphinx/custom.css.tmpl # Sphinx API styling
├── zensical.toml.tmpl # Zensical site config
├── build.spec.tmpl # PyInstaller spec template
├── github/dependabot.yml.tmpl
├── github/workflows/github-release.yml.tmpl
├── github/workflows/docs.yml.tmpl
├── github/workflows/lint-format.yml.tmpl
├── github/workflows/publish-pypi.yml.tmpl
├── github/workflows/quality-security.yml.tmpl
├── github/workflows/sphinx-api.yml.tmpl
├── github/workflows/tests.yml.tmpl
└── github/workflows/typecheck.yml.tmpl
Template variables use {{VARNAME}} syntax. Add or modify templates to customize
generated output for every new project.
Metadata
Release files for pyptmpl 2026.4.16.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyptmpl-2026.4.16.1.tar.gz | 29.0 kB | Without provenance | Details for pyptmpl-2026.4.16.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyptmpl-2026.4.16.1-py3-none-any.whl | Python 3 | none | any | Details for pyptmpl-2026.4.16.1-py3-none-any.whl |
Total release size: 73.2 kB
Release files / pyptmpl-2026.4.16.1.tar.gz
| Download URL | pyptmpl-2026.4.16.1.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7eb659de993495f5ea72843aadc742248138df02649f89f86be068802a2a785
|
|
BLAKE2b-256 checksum How to use checksums |
502e575fad5750ce10a8aeb4aea55ae4cba94aa40cc2871e22ca6d8203f0907f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyptmpl-2026.4.16.1-py3-none-any.whl
| Download URL | pyptmpl-2026.4.16.1-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62a2c58f15e99298fec2556d171adf80ed04fdf43fb1d2fe363fdeccf2e2cc94
|
|
BLAKE2b-256 checksum How to use checksums |
4bbe590d457913a8e017b294d710628785c86f2f30dffa6d077a489ec172426f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pyptmpl 2026.4.16.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.