pytemplate-uv
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 28 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
PyTemplate UV is a powerful CLI tool for creating Python project templates using the uv package manager. It provides a seamless way to generate standardized project structures with modern development practices.
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 thepytemplate 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 installinstalls three skills for Claude Code and other agents:pytemplatecreates a project
with your confirmation,pytemplate-findfinds a pack on the hub, andpytemplate-authormakes 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/[email protected]
uvx pytemplate-uv@latest create my-app -h yuxuzi/[email protected] -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.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi