Skip to main content

pytemplate-uv

pytemplate-uv logo

Generate once. Own your code.

PyPI Python CI License: MIT

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 uv and uvx (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), and fastapi (a layered REST API service).
  • Components: database, worker, auth-api-key, auth-oidc, container, devcontainer, release, and mcp. The generator checks combinations and adds what each one requires.
  • For coding agents: every project carries an AGENTS.md, and uvx pytemplate-uv@latest skill install teaches 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.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 pytemplate-uv 3.7.0
File Size Uploaded Provenance Actions
pytemplate_uv-3.7.0.tar.gz 149.3 kB With provenance Details for pytemplate_uv-3.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytemplate-uv 3.7.0
File Interpreter ABI Platform Actions
pytemplate_uv-3.7.0-py3-none-any.whl Python 3 none any Details for pytemplate_uv-3.7.0-py3-none-any.whl

Total release size: 312.1 kB

Release files / pytemplate_uv-3.7.0.tar.gz

Download URL pytemplate_uv-3.7.0.tar.gz
Size 149.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0175922a76c2d150a9a7960901c0770ba47c9d679cacebc365da751b184027ae
BLAKE2b-256 checksum
How to use checksums
dbaa34200f1b872fd367f6731f63b7c5f638bf0501fc95a5c1140aa70e969f48
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 log

Release files / pytemplate_uv-3.7.0-py3-none-any.whl

Download URL pytemplate_uv-3.7.0-py3-none-any.whl
Size 162.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ede88546fe6a3b098df2cbbb74d7b4bc08672c93dffd0c38f967efe1eb8bc878
BLAKE2b-256 checksum
How to use checksums
b9f43acfc92a3914f50179d1be5bd351cd0855ee81ec820af6fe980fa155d0cb
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 log

Security for pytemplate-uv 3.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 pytemplate_uv-3.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 26, 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