pytemplate-uv
Generate once. Own your code.
pytemplate-uv is a deterministic application factory that generates uv-native Python projects: choose a profile (a typed CLI package, a library, or a FastAPI service), add components (database, authentication, background jobs), and get a project that passes linting, formatting, type-checking, and tests from its first commit.
Documentation: https://yuxuzi.github.io/pytemplate-hub/learn/. The tutorial and every guide live on the website; this README is a summary that links to them.
uvx pytemplate-uv@latest create my-tool -y
cd my-tool
uv run pytest
- Deterministic: identical requests produce byte-identical projects.
- Checked: every bundled component combination is generated and checked in CI.
- uv-native: generated projects need only
uvanduvx(no pip, virtualenv activation, or make). - Type-safe: strict mypy on generated code; requests are validated before anything is written.
- Extensible: template packs add your own profiles and components without forking.
Documentation
| Page | What it covers |
|---|---|
| Tutorial | Your first project, a pack from the hub, and a pack of your own, listed |
| Using pytemplate-uv | Every command and option, request files, coding agents, and the Python API |
| Template packs | Using a pack from the hub, writing one, and pinning it |
| Publish a pack | Listing your pack on the hub |
| Compatibility and versioning | What each release keeps stable |
| Changelog | What changed in each release |
Install
No installation is needed: uvx pytemplate-uv@latest runs the latest release. To install the
pytemplate command, run uv tool install pytemplate-uv. It requires Python 3.11 to 3.15, on
Linux, macOS, or Windows.
What you get
- Profiles:
python(a typed package with a Typer CLI),library(a typed package with no CLI), andfastapi(a layered REST API service). - Components:
database,worker,auth-api-key,auth-oidc,container,devcontainer,release, andmcp. The generator checks combinations and adds what each one requires. - For coding agents: every project carries an
AGENTS.md, anduvx pytemplate-uv@latest skill installteaches Claude Code and other agents to create projects with your confirmation.
uvx pytemplate-uv@latest create my-api -p fastapi -c database -c auth-oidc -y
uvx pytemplate-uv@latest plan --name my-api -p fastapi -c database # preview; writes nothing
Using pytemplate-uv covers every profile, component, command, and option.
Find templates on the hub
pytemplate-hub is the official index of template
packs. Name a listed pack with -h (--hub): pytemplate-uv reads the tag, commit, and digest the
hub checked, and refuses the pack if anything changed since.
uvx pytemplate-uv@latest list-profiles -h yuxuzi/pytemplate-starters@v1.0.0
uvx pytemplate-uv@latest create my-app -h yuxuzi/pytemplate-starters@v1.0.0 -p cli -y
For CI and offline use, and for writing your own pack, see Template packs.
Contribute
uv sync
uv run pytest # unit tests
PYTEMPLATE_SMOKE=1 uv run pytest # every component combination, generated and checked
uv run ruff check .
uv run mypy
See CONTRIBUTING.md for the full guide, and AGENTS.md for coding agents. A new kind of project usually belongs in your own template pack rather than in the bundled catalog: publish it on the hub. The website's pages are edited in pytemplate-hub.
License
MIT. See LICENSE.
Metadata
Release files for pytemplate-uv 3.7.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 |
|---|---|---|---|---|
| pytemplate_uv-3.7.1.tar.gz | 150.6 kB | With provenance | Details for pytemplate_uv-3.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytemplate_uv-3.7.1-py3-none-any.whl | Python 3 | none | any | Details for pytemplate_uv-3.7.1-py3-none-any.whl |
Total release size: 313.9 kB
Release files / pytemplate_uv-3.7.1.tar.gz
| Download URL | pytemplate_uv-3.7.1.tar.gz |
|---|---|
| Size | 150.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
229790ec1875b18f019cf708f5ab55bd6d82e120334e909cf6a66a7b5505e696
|
|
BLAKE2b-256 checksum How to use checksums |
699371638a9cea4325cd358d50e7f8f74f999bbcbb62b9eb83b1ab7040a69262
|
| 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 26, 2026.
Transparency logRelease files / pytemplate_uv-3.7.1-py3-none-any.whl
| Download URL | pytemplate_uv-3.7.1-py3-none-any.whl |
|---|---|
| Size | 163.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23659103695d2462b7f2dbd0fa831cffb192749d3f28739efc06c22c3807b7d7
|
|
BLAKE2b-256 checksum How to use checksums |
ca7459302ac4aa720505e81fbe493509beb96456f5a26ca02751cfd9cdb11f6c
|
| 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 26, 2026.
Transparency logSecurity for pytemplate-uv 3.7.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytemplate_uv-3.7.1.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 26, 2026.
Transparency logA 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.