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 installs three skills for Claude Code and other agents: pytemplate creates a project with your confirmation, pytemplate-find finds a pack on the hub, and pytemplate-author makes a pack from a project, a template, or scratch (Make a pack with an agent).
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 search cli typer          # ranked matches from the hub
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. To check a pack before you publish it, run uvx pytemplate-uv@latest pack check ./my-pack.

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.8.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.8.0
File Size Uploaded Provenance Actions
pytemplate_uv-3.8.0.tar.gz 214.0 kB With provenance Details for pytemplate_uv-3.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 422.6 kB

Release files / pytemplate_uv-3.8.0.tar.gz

Download URL pytemplate_uv-3.8.0.tar.gz
Size 214.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c3d40e49065f7f2b59ba1a8cfd2a01c33c243c6028534411a20fc83316aa0eb3
BLAKE2b-256 checksum
How to use checksums
cb3c955a987258cc81c4747c4b34c4de8de9b14c5e5cae365a59cabbde141a73
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 Dec 4, 2026.

Transparency log

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

Download URL pytemplate_uv-3.8.0-py3-none-any.whl
Size 208.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61ff7959abe63cffd6da301087af044f8ac24833a9da3a0f2ac0edab91034f2d
BLAKE2b-256 checksum
How to use checksums
9c9cf8ff88270630b2fe47ffb6ae50e5cf30b15184eef44e5f797fadfb9108dd
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 Dec 4, 2026.

Transparency log

Security for pytemplate-uv 3.8.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.8.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 Dec 4, 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