pytemplate-uv 3.2.0__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/CHANGELOG.md +38 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/PKG-INFO +82 -17
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/README.md +81 -16
- pytemplate_uv-3.4.0/docs/assets/logo.svg +10 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/docs/compatibility.md +5 -2
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pyproject.toml +1 -1
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pyproject.toml.orig +1 -1
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/api.py +3 -1
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/main.py +59 -6
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/packs.py +80 -8
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/schema.py +10 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/skills/pytemplate/SKILL.md +45 -9
- pytemplate_uv-3.4.0/tests/test_pack_manifest.py +90 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_packs.py +21 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/LICENSE +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/agent_skill.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/cli_options.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/api.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/auth-api-key.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/auth-oidc.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/auth.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/cli.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/container.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/database.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/devcontainer.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/mcp.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/release.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/components/worker.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/configuration.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/errors.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/picker.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/post_create.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/profiles.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/py.typed +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/rendering.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/resolution.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/status.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/suggestions.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/copier.yml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/profile.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.devcontainer/devcontainer.json.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.dockerignore +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.env.example.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.github/dependabot.yml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.github/workflows/ci.yml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.gitignore.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/.pre-commit-config.yaml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/AGENTS.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/CLAUDE.md +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/Dockerfile.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/README.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/SECURITY.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/alembic.ini.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/migrations/env.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/migrations/script.py.mako +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/migrations/versions/0001_create_examples.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/pyproject.toml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/conftest.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_api.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_api_key_auth.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_cli.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_database.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_jobs.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/integration/test_oidc_auth.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/test_examples.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/test_logging.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/test_principal.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/test_settings.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/tests/unit/test_tasks.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ _copier_conf.answers_file }}.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/dependencies.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/errors.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/health.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/middleware.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/routers/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/routers/examples.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/routers/jobs.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/routers/me.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/api/schemas.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/application/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/application/examples.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/application/tasks.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/bootstrap/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/bootstrap/app.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/bootstrap/container.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/bootstrap/logging.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/bootstrap/settings.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/cli.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/domain/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/domain/errors.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/domain/examples.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/domain/ports.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/database/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/database/engine.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/database/models.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/database/repository.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/database/unit_of_work.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/memory.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/infrastructure/tasks.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/main.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/py.typed +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/api_key.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/audit.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/dependencies.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/oidc.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/principal.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/fastapi/template/{{ package_name }}/security/rate_limit.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/profile.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.devcontainer/devcontainer.json.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.github/dependabot.yml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.github/workflows/ci.yml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.github/workflows/release.yml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.gitignore.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.mcp.json.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/.pre-commit-config.yaml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/AGENTS.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/CLAUDE.md +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/README.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/pyproject.toml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/tests/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/tests/test_core.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/tests/test_mcp_server.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/{{ _copier_conf.answers_file }}.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/{{ package_name }}/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/{{ package_name }}/core.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/{{ package_name }}/mcp_server.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/library/template/{{ package_name }}/py.typed +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/profile.toml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.devcontainer/devcontainer.json.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.dockerignore +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.github/dependabot.yml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.github/workflows/ci.yml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.github/workflows/release.yml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.gitignore.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.mcp.json.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/.pre-commit-config.yaml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/AGENTS.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/CLAUDE.md +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/Dockerfile.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/README.md.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/pyproject.toml.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/tests/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/tests/test_cli.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/tests/test_core.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/tests/test_mcp_server.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ _copier_conf.answers_file }}.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ package_name }}/__init__.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ package_name }}/cli.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ package_name }}/core.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ package_name }}/mcp_server.py.jinja +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/python/template/{{ package_name }}/py.typed +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/pytemplate/templates/questions.yml +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/cli_runner.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/conftest.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_cli.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_composition.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_configuration.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_generated_projects.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_picker.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_post_create.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_profiles.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_rendering.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_resolution.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_schema.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_skill.py +0 -0
- {pytemplate_uv-3.2.0 → pytemplate_uv-3.4.0}/tests/test_status.py +0 -0
|
@@ -6,6 +6,44 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## [3.4.0] — 2026-11-25
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `pytemplate-pack.toml` accepts two optional keys: `categories`, a list of lowercase slugs, and
|
|
14
|
+
`keywords`, at most 12 lowercase strings of up to 30 characters. Only their shape is checked; the
|
|
15
|
+
template hub owns the vocabulary. A wrong shape is refused with an error naming the key.
|
|
16
|
+
- `pytemplate.api` exports `PackManifest` and `read_pack_manifest()`, which read a pack's manifest
|
|
17
|
+
including the two keys. The published `pack` JSON Schema lists them.
|
|
18
|
+
|
|
19
|
+
## [3.3.0] — 2026-11-24
|
|
20
|
+
|
|
21
|
+
3.3.0 connects pytemplate-uv to pytemplate-hub, the index of template packs: the skill can find a
|
|
22
|
+
pack there, and the README shows where to find and share packs.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- The `pytemplate` skill can look for a template pack on
|
|
27
|
+
[pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub) when the user asks for one or no
|
|
28
|
+
bundled profile fits. It shows the candidates and whether each is listed or reviewed, waits for
|
|
29
|
+
the user's choice, and pins the request to the listed commit and digest. Reinstall the skill with
|
|
30
|
+
`pytemplate skill install --force`.
|
|
31
|
+
- `list-profiles`, `describe-profile`, `list-components`, and `describe-component` accept
|
|
32
|
+
`--template-commit`, `--template-digest`, and `--no-cache`, so you can inspect exactly the
|
|
33
|
+
pack revision you will render.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- The docs no longer claim that a cached pinned pack is refused when its tag moves. A cache hit is
|
|
38
|
+
checked against the digest but not fetched again, so it renders the pinned files and notices a
|
|
39
|
+
moved tag only on the next fetch (`--no-cache`).
|
|
40
|
+
|
|
41
|
+
### Documentation
|
|
42
|
+
|
|
43
|
+
- The README names [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub) as the place to
|
|
44
|
+
find and share template packs, shows a pinned command from a listing, and links the hub's
|
|
45
|
+
tutorial.
|
|
46
|
+
|
|
9
47
|
## [3.2.0] — 2026-11-17
|
|
10
48
|
|
|
11
49
|
3.2.0 makes the CLI friendlier and faster, adds a `library` profile with `release` and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytemplate-uv
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Summary: A deterministic application factory: uv-native Python and FastAPI projects from profiles, composable components, and template packs.
|
|
5
5
|
Keywords: uv,copier,template,project-generator,scaffold,fastapi,cli,sqlalchemy,alembic,oidc
|
|
6
6
|
Author: Leo Liu
|
|
@@ -35,25 +35,46 @@ Description-Content-Type: text/markdown
|
|
|
35
35
|
|
|
36
36
|
# pytemplate-uv
|
|
37
37
|
|
|
38
|
+
<p align="center">
|
|
39
|
+
<img src="docs/assets/logo.svg" alt="pytemplate-uv logo" width="160">
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
<p align="center"><strong>Generate once. Own your code.</strong></p>
|
|
43
|
+
|
|
44
|
+
<p align="center">
|
|
45
|
+
|
|
38
46
|
[](https://pypi.org/project/pytemplate-uv/)
|
|
39
47
|
[](https://pypi.org/project/pytemplate-uv/)
|
|
40
48
|
[](https://github.com/yuxuzi/pytemplate-uv/actions/workflows/ci.yml)
|
|
41
49
|
[](LICENSE)
|
|
42
50
|
|
|
43
|
-
>
|
|
44
|
-
> with profiles, composable components, and template packs.
|
|
51
|
+
</p>
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
pytemplate-uv is a deterministic application factory that generates **uv-native** Python
|
|
54
|
+
projects: choose a profile (a typed CLI package or a FastAPI service), add components (database,
|
|
55
|
+
authentication, background jobs), and get a project that passes linting, formatting,
|
|
56
|
+
type-checking, and tests from its first commit.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
uvx pytemplate-uv@latest create my-tool -y
|
|
60
|
+
cd my-tool
|
|
61
|
+
uv run pytest
|
|
62
|
+
```
|
|
51
63
|
|
|
52
64
|
- ✅ **Deterministic:** identical requests produce byte-identical projects
|
|
53
|
-
- ✅ **Checked:** every bundled component combination
|
|
65
|
+
- ✅ **Checked:** every bundled component combination is generated and checked in CI
|
|
54
66
|
- ✅ **uv-native:** generated projects need only `uv` and `uvx` (no pip, virtualenv activation, or make)
|
|
55
|
-
- ✅ **Extensible:** use template packs to customize without forking
|
|
56
67
|
- ✅ **Type-safe:** strict mypy on generated code; requests are validated before anything is written
|
|
68
|
+
- ✅ **Extensible:** use template packs to customize without forking
|
|
69
|
+
|
|
70
|
+
## Find templates
|
|
71
|
+
|
|
72
|
+
- **Browse** template packs on [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub), the
|
|
73
|
+
official index. Each listing is checked, and the hub stores references rather than files.
|
|
74
|
+
- **Copy a pinned command.** Each listed version gives a command pinned to the tag, commit, and
|
|
75
|
+
digest that were checked, so you render exactly what the hub reviewed.
|
|
76
|
+
See [Find templates on the hub](#find-templates-on-the-hub) for the walk-through.
|
|
77
|
+
- **Read** posts and the tutorial on the pytemplate website: <!-- TODO: site URL -->
|
|
57
78
|
|
|
58
79
|
## What you get
|
|
59
80
|
|
|
@@ -85,7 +106,7 @@ Every project generated from the bundled templates passes:
|
|
|
85
106
|
- ✅ Strict `mypy` (type safety)
|
|
86
107
|
- ✅ `pytest` (tests included)
|
|
87
108
|
|
|
88
|
-
This is verified across
|
|
109
|
+
This is verified across every bundled component combination on every commit. Projects from
|
|
89
110
|
your own template packs are not covered by these checks; test your pack the same way.
|
|
90
111
|
|
|
91
112
|
### Built for teams
|
|
@@ -105,8 +126,7 @@ your own template packs are not covered by these checks; test your pack the same
|
|
|
105
126
|
**The solution:**
|
|
106
127
|
- Start from reviewed patterns: layered architecture, health checks, structured logs, auth
|
|
107
128
|
behind a principal and scopes
|
|
108
|
-
- Every bundled component combination is generated and checked in CI
|
|
109
|
-
Linux and Windows)
|
|
129
|
+
- Every bundled component combination is generated and checked in CI, on Linux and Windows
|
|
110
130
|
- Script it: the same request always produces the same project
|
|
111
131
|
|
|
112
132
|
**Good fit for:**
|
|
@@ -262,6 +282,35 @@ values:
|
|
|
262
282
|
|
|
263
283
|
`pytemplate schema manifest` describes the format.
|
|
264
284
|
|
|
285
|
+
## Find templates on the hub
|
|
286
|
+
|
|
287
|
+
The bundled profiles cover common cases. For more, browse [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub), the official
|
|
288
|
+
index of template packs. The hub stores references, not files: each pack stays in its author's own
|
|
289
|
+
GitHub repository, and each listed version records the tag, commit, and digest that passed the
|
|
290
|
+
hub's checks.
|
|
291
|
+
|
|
292
|
+
1. Find a pack on the hub and read its repository (a pack's generated project runs code when you
|
|
293
|
+
use it).
|
|
294
|
+
2. Note the listing's tag, commit, and digest, and pass all three to every command, so you see and
|
|
295
|
+
render exactly the files the hub checked. A pack that does not match them is refused before
|
|
296
|
+
anything is read.
|
|
297
|
+
3. See its profiles, then create a project:
|
|
298
|
+
|
|
299
|
+
```bash
|
|
300
|
+
uvx pytemplate-uv@latest list-profiles \
|
|
301
|
+
--template gh:yuxuzi/pytemplate-starters --template-ref v1.0.0 \
|
|
302
|
+
--template-commit 2886e570d1b964811e63b6aa93f3e0ede2e8e7d2 \
|
|
303
|
+
--template-digest 9257161472cfe280e79c7452ff0e01618b278ea57b7d74280b882976969de924
|
|
304
|
+
|
|
305
|
+
uvx pytemplate-uv@latest create my-app -p cli \
|
|
306
|
+
--template gh:yuxuzi/pytemplate-starters --template-ref v1.0.0 \
|
|
307
|
+
--template-commit 2886e570d1b964811e63b6aa93f3e0ede2e8e7d2 \
|
|
308
|
+
--template-digest 9257161472cfe280e79c7452ff0e01618b278ea57b7d74280b882976969de924 -y
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
Made a pack others could use? [List it on the hub](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md#6-share-your-pack-on-the-hub): you keep
|
|
312
|
+
the repository, and the hub checks each tag you submit.
|
|
313
|
+
|
|
265
314
|
## Template packs
|
|
266
315
|
|
|
267
316
|
A template pack is a directory or git repository with your own profiles and components. It has
|
|
@@ -269,7 +318,7 @@ the same layout as the bundled templates:
|
|
|
269
318
|
|
|
270
319
|
```
|
|
271
320
|
my-pack/
|
|
272
|
-
pytemplate-pack.toml # contract = 1, id, name, description, version
|
|
321
|
+
pytemplate-pack.toml # contract = 1, id, name, description, version; optional categories, keywords
|
|
273
322
|
copier.yml # _subdirectory: "{{ profile }}/template"; --- !include questions.yml
|
|
274
323
|
questions.yml # profile, project_name, package_name, components, ...
|
|
275
324
|
<profile>/profile.toml # the profile manifest (pytemplate schema profile)
|
|
@@ -288,14 +337,21 @@ pytemplate create my-tool -p tool --template gh:org/my-pack --template-ref v1.2.
|
|
|
288
337
|
- `_tasks`, `_migrations`, `_jinja_extensions`, `_external_data`, and symlinks are rejected,
|
|
289
338
|
including in files a pack's `copier.yml` includes.
|
|
290
339
|
- Pack-generated projects record the pack's source and tag.
|
|
340
|
+
- `pytemplate-pack.toml` may also list `categories` (lowercase slugs: letters, digits, and
|
|
341
|
+
hyphens, starting with a letter) and `keywords` (at most 12 lowercase strings of 1 to 30
|
|
342
|
+
characters, with no spaces at either end). Both are optional and checked for shape only; the
|
|
343
|
+
template hub decides their vocabulary. Wrong shapes are refused with the key named.
|
|
291
344
|
- Projects from a git pack also record the commit and digest they were rendered from. To refuse a
|
|
292
345
|
pack that changed, pin them:
|
|
293
346
|
```bash
|
|
294
347
|
pytemplate create my-tool -p tool --template gh:org/my-pack --template-ref v1.2.0 \
|
|
295
348
|
--template-commit <commit> --template-digest <digest> -y
|
|
296
349
|
```
|
|
297
|
-
`--template-ref` also accepts a full commit hash.
|
|
298
|
-
|
|
350
|
+
`--template-ref` also accepts a full commit hash. The discovery commands (`list-profiles`,
|
|
351
|
+
`describe-profile`, `list-components`, `describe-component`) accept the same pins. A pack pinned
|
|
352
|
+
to both a commit and a digest is cached under your user cache directory and checked against the
|
|
353
|
+
digest on every use; a cached copy is not fetched again, so it always renders the pinned files,
|
|
354
|
+
and a moved tag is only noticed on the next fetch. Pass
|
|
299
355
|
`--no-cache` (or set `PYTEMPLATE_NO_CACHE=1`) to fetch it again; `PYTEMPLATE_CACHE_DIR` moves
|
|
300
356
|
the cache. Git never prompts for credentials, and a clone stops after 120 seconds
|
|
301
357
|
(`PYTEMPLATE_GIT_TIMEOUT`).
|
|
@@ -403,8 +459,15 @@ uv run mypy
|
|
|
403
459
|
|
|
404
460
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guide.
|
|
405
461
|
|
|
462
|
+
**Sharing a template:** a new kind of project usually belongs in your own template pack rather
|
|
463
|
+
than in the bundled catalog. Publish it in your GitHub repository and [list it on
|
|
464
|
+
pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md#6-share-your-pack-on-the-hub) so others can find it. Contributions to the
|
|
465
|
+
hub itself, from fixes to new checks, are welcome too: see [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub).
|
|
466
|
+
|
|
406
467
|
## Learn more
|
|
407
468
|
|
|
469
|
+
- [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub): find and share template packs
|
|
470
|
+
- [Tutorial: from your first project to your own listed pack](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md)
|
|
408
471
|
- [Compatibility & versioning](docs/compatibility.md)
|
|
409
472
|
- [CHANGELOG](CHANGELOG.md)
|
|
410
473
|
- For AI agents: [AGENTS.md](AGENTS.md)
|
|
@@ -420,7 +483,9 @@ review the generated `README.md` (and `.env.example` for FastAPI services).
|
|
|
420
483
|
|
|
421
484
|
**What if I want to customize the templates?**
|
|
422
485
|
Use `--template` to point to your own template pack (a directory or git repo). You get all the
|
|
423
|
-
composition logic but with your own code.
|
|
486
|
+
composition logic but with your own code. Before writing one, look on
|
|
487
|
+
[pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub) for a pack that already fits, and once yours works, list it there; the
|
|
488
|
+
[tutorial](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md) walks through both.
|
|
424
489
|
|
|
425
490
|
**How do I keep my project updated?**
|
|
426
491
|
The generated project is yours from the first commit; pytemplate does not merge later template
|
|
@@ -1,24 +1,45 @@
|
|
|
1
1
|
# pytemplate-uv
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="docs/assets/logo.svg" alt="pytemplate-uv logo" width="160">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center"><strong>Generate once. Own your code.</strong></p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
|
|
3
11
|
[](https://pypi.org/project/pytemplate-uv/)
|
|
4
12
|
[](https://pypi.org/project/pytemplate-uv/)
|
|
5
13
|
[](https://github.com/yuxuzi/pytemplate-uv/actions/workflows/ci.yml)
|
|
6
14
|
[](LICENSE)
|
|
7
15
|
|
|
8
|
-
>
|
|
9
|
-
> with profiles, composable components, and template packs.
|
|
16
|
+
</p>
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
pytemplate-uv is a deterministic application factory that generates **uv-native** Python
|
|
19
|
+
projects: choose a profile (a typed CLI package or a FastAPI service), add components (database,
|
|
20
|
+
authentication, background jobs), and get a project that passes linting, formatting,
|
|
21
|
+
type-checking, and tests from its first commit.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
uvx pytemplate-uv@latest create my-tool -y
|
|
25
|
+
cd my-tool
|
|
26
|
+
uv run pytest
|
|
27
|
+
```
|
|
16
28
|
|
|
17
29
|
- ✅ **Deterministic:** identical requests produce byte-identical projects
|
|
18
|
-
- ✅ **Checked:** every bundled component combination
|
|
30
|
+
- ✅ **Checked:** every bundled component combination is generated and checked in CI
|
|
19
31
|
- ✅ **uv-native:** generated projects need only `uv` and `uvx` (no pip, virtualenv activation, or make)
|
|
20
|
-
- ✅ **Extensible:** use template packs to customize without forking
|
|
21
32
|
- ✅ **Type-safe:** strict mypy on generated code; requests are validated before anything is written
|
|
33
|
+
- ✅ **Extensible:** use template packs to customize without forking
|
|
34
|
+
|
|
35
|
+
## Find templates
|
|
36
|
+
|
|
37
|
+
- **Browse** template packs on [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub), the
|
|
38
|
+
official index. Each listing is checked, and the hub stores references rather than files.
|
|
39
|
+
- **Copy a pinned command.** Each listed version gives a command pinned to the tag, commit, and
|
|
40
|
+
digest that were checked, so you render exactly what the hub reviewed.
|
|
41
|
+
See [Find templates on the hub](#find-templates-on-the-hub) for the walk-through.
|
|
42
|
+
- **Read** posts and the tutorial on the pytemplate website: <!-- TODO: site URL -->
|
|
22
43
|
|
|
23
44
|
## What you get
|
|
24
45
|
|
|
@@ -50,7 +71,7 @@ Every project generated from the bundled templates passes:
|
|
|
50
71
|
- ✅ Strict `mypy` (type safety)
|
|
51
72
|
- ✅ `pytest` (tests included)
|
|
52
73
|
|
|
53
|
-
This is verified across
|
|
74
|
+
This is verified across every bundled component combination on every commit. Projects from
|
|
54
75
|
your own template packs are not covered by these checks; test your pack the same way.
|
|
55
76
|
|
|
56
77
|
### Built for teams
|
|
@@ -70,8 +91,7 @@ your own template packs are not covered by these checks; test your pack the same
|
|
|
70
91
|
**The solution:**
|
|
71
92
|
- Start from reviewed patterns: layered architecture, health checks, structured logs, auth
|
|
72
93
|
behind a principal and scopes
|
|
73
|
-
- Every bundled component combination is generated and checked in CI
|
|
74
|
-
Linux and Windows)
|
|
94
|
+
- Every bundled component combination is generated and checked in CI, on Linux and Windows
|
|
75
95
|
- Script it: the same request always produces the same project
|
|
76
96
|
|
|
77
97
|
**Good fit for:**
|
|
@@ -227,6 +247,35 @@ values:
|
|
|
227
247
|
|
|
228
248
|
`pytemplate schema manifest` describes the format.
|
|
229
249
|
|
|
250
|
+
## Find templates on the hub
|
|
251
|
+
|
|
252
|
+
The bundled profiles cover common cases. For more, browse [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub), the official
|
|
253
|
+
index of template packs. The hub stores references, not files: each pack stays in its author's own
|
|
254
|
+
GitHub repository, and each listed version records the tag, commit, and digest that passed the
|
|
255
|
+
hub's checks.
|
|
256
|
+
|
|
257
|
+
1. Find a pack on the hub and read its repository (a pack's generated project runs code when you
|
|
258
|
+
use it).
|
|
259
|
+
2. Note the listing's tag, commit, and digest, and pass all three to every command, so you see and
|
|
260
|
+
render exactly the files the hub checked. A pack that does not match them is refused before
|
|
261
|
+
anything is read.
|
|
262
|
+
3. See its profiles, then create a project:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
uvx pytemplate-uv@latest list-profiles \
|
|
266
|
+
--template gh:yuxuzi/pytemplate-starters --template-ref v1.0.0 \
|
|
267
|
+
--template-commit 2886e570d1b964811e63b6aa93f3e0ede2e8e7d2 \
|
|
268
|
+
--template-digest 9257161472cfe280e79c7452ff0e01618b278ea57b7d74280b882976969de924
|
|
269
|
+
|
|
270
|
+
uvx pytemplate-uv@latest create my-app -p cli \
|
|
271
|
+
--template gh:yuxuzi/pytemplate-starters --template-ref v1.0.0 \
|
|
272
|
+
--template-commit 2886e570d1b964811e63b6aa93f3e0ede2e8e7d2 \
|
|
273
|
+
--template-digest 9257161472cfe280e79c7452ff0e01618b278ea57b7d74280b882976969de924 -y
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Made a pack others could use? [List it on the hub](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md#6-share-your-pack-on-the-hub): you keep
|
|
277
|
+
the repository, and the hub checks each tag you submit.
|
|
278
|
+
|
|
230
279
|
## Template packs
|
|
231
280
|
|
|
232
281
|
A template pack is a directory or git repository with your own profiles and components. It has
|
|
@@ -234,7 +283,7 @@ the same layout as the bundled templates:
|
|
|
234
283
|
|
|
235
284
|
```
|
|
236
285
|
my-pack/
|
|
237
|
-
pytemplate-pack.toml # contract = 1, id, name, description, version
|
|
286
|
+
pytemplate-pack.toml # contract = 1, id, name, description, version; optional categories, keywords
|
|
238
287
|
copier.yml # _subdirectory: "{{ profile }}/template"; --- !include questions.yml
|
|
239
288
|
questions.yml # profile, project_name, package_name, components, ...
|
|
240
289
|
<profile>/profile.toml # the profile manifest (pytemplate schema profile)
|
|
@@ -253,14 +302,21 @@ pytemplate create my-tool -p tool --template gh:org/my-pack --template-ref v1.2.
|
|
|
253
302
|
- `_tasks`, `_migrations`, `_jinja_extensions`, `_external_data`, and symlinks are rejected,
|
|
254
303
|
including in files a pack's `copier.yml` includes.
|
|
255
304
|
- Pack-generated projects record the pack's source and tag.
|
|
305
|
+
- `pytemplate-pack.toml` may also list `categories` (lowercase slugs: letters, digits, and
|
|
306
|
+
hyphens, starting with a letter) and `keywords` (at most 12 lowercase strings of 1 to 30
|
|
307
|
+
characters, with no spaces at either end). Both are optional and checked for shape only; the
|
|
308
|
+
template hub decides their vocabulary. Wrong shapes are refused with the key named.
|
|
256
309
|
- Projects from a git pack also record the commit and digest they were rendered from. To refuse a
|
|
257
310
|
pack that changed, pin them:
|
|
258
311
|
```bash
|
|
259
312
|
pytemplate create my-tool -p tool --template gh:org/my-pack --template-ref v1.2.0 \
|
|
260
313
|
--template-commit <commit> --template-digest <digest> -y
|
|
261
314
|
```
|
|
262
|
-
`--template-ref` also accepts a full commit hash.
|
|
263
|
-
|
|
315
|
+
`--template-ref` also accepts a full commit hash. The discovery commands (`list-profiles`,
|
|
316
|
+
`describe-profile`, `list-components`, `describe-component`) accept the same pins. A pack pinned
|
|
317
|
+
to both a commit and a digest is cached under your user cache directory and checked against the
|
|
318
|
+
digest on every use; a cached copy is not fetched again, so it always renders the pinned files,
|
|
319
|
+
and a moved tag is only noticed on the next fetch. Pass
|
|
264
320
|
`--no-cache` (or set `PYTEMPLATE_NO_CACHE=1`) to fetch it again; `PYTEMPLATE_CACHE_DIR` moves
|
|
265
321
|
the cache. Git never prompts for credentials, and a clone stops after 120 seconds
|
|
266
322
|
(`PYTEMPLATE_GIT_TIMEOUT`).
|
|
@@ -368,8 +424,15 @@ uv run mypy
|
|
|
368
424
|
|
|
369
425
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guide.
|
|
370
426
|
|
|
427
|
+
**Sharing a template:** a new kind of project usually belongs in your own template pack rather
|
|
428
|
+
than in the bundled catalog. Publish it in your GitHub repository and [list it on
|
|
429
|
+
pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md#6-share-your-pack-on-the-hub) so others can find it. Contributions to the
|
|
430
|
+
hub itself, from fixes to new checks, are welcome too: see [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub).
|
|
431
|
+
|
|
371
432
|
## Learn more
|
|
372
433
|
|
|
434
|
+
- [pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub): find and share template packs
|
|
435
|
+
- [Tutorial: from your first project to your own listed pack](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md)
|
|
373
436
|
- [Compatibility & versioning](docs/compatibility.md)
|
|
374
437
|
- [CHANGELOG](CHANGELOG.md)
|
|
375
438
|
- For AI agents: [AGENTS.md](AGENTS.md)
|
|
@@ -385,7 +448,9 @@ review the generated `README.md` (and `.env.example` for FastAPI services).
|
|
|
385
448
|
|
|
386
449
|
**What if I want to customize the templates?**
|
|
387
450
|
Use `--template` to point to your own template pack (a directory or git repo). You get all the
|
|
388
|
-
composition logic but with your own code.
|
|
451
|
+
composition logic but with your own code. Before writing one, look on
|
|
452
|
+
[pytemplate-hub](https://github.com/yuxuzi/pytemplate-hub) for a pack that already fits, and once yours works, list it there; the
|
|
453
|
+
[tutorial](https://github.com/yuxuzi/pytemplate-hub/blob/main/docs/tutorial.md) walks through both.
|
|
389
454
|
|
|
390
455
|
**How do I keep my project updated?**
|
|
391
456
|
The generated project is yours from the first commit; pytemplate does not merge later template
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 244 64" role="img" aria-label="pytemplate">
|
|
2
|
+
<!-- A snake wraps the wordmark: under the descenders, up around the end, head over "te". Outline the text before release. -->
|
|
3
|
+
<path d="M5 51C38 61 88 45 128 51S196 60 220 45C236 35 237 15 222 10C212 7 204 11 199 16" fill="none" stroke="#e8a317" stroke-width="6.5" stroke-linecap="round"/>
|
|
4
|
+
<path d="M5 51C38 61 88 45 128 51S196 60 220 45C236 35 237 15 222 10C212 7 204 11 199 16" fill="none" stroke="#7a4f00" stroke-width="1.6" stroke-linecap="round" stroke-dasharray="1.5 7" opacity=".45"/>
|
|
5
|
+
<text x="12" y="41" font-family="Martian Mono, ui-monospace, monospace" font-weight="700" font-size="31" letter-spacing="-2.2" fill="#13201a"><tspan fill="#e8a317">py</tspan>template</text>
|
|
6
|
+
<path d="M5 51C38 61 88 45 128 51S196 60 220 45" fill="none" stroke="#e8a317" stroke-width="6.5" stroke-linecap="round" stroke-dasharray="0 22 40 400"/>
|
|
7
|
+
<ellipse cx="195" cy="18.5" rx="7.5" ry="5.2" transform="rotate(-32 195 18.5)" fill="#e8a317"/>
|
|
8
|
+
<circle cx="193" cy="16.2" r="1.3" fill="#13201a"/>
|
|
9
|
+
<path d="M188.5 22.5l-4 3.2m4-3.2l-4.6.4" stroke="#b42318" stroke-width="1.3" stroke-linecap="round"/>
|
|
10
|
+
</svg>
|
|
@@ -75,8 +75,11 @@ format.
|
|
|
75
75
|
- they may not contain symlinks.
|
|
76
76
|
- A pack versions itself: its git tags and its `pytemplate-pack.toml` `version`.
|
|
77
77
|
- A git pack can be pinned with `--template-commit` and `--template-digest`, or `template_commit`
|
|
78
|
-
and `template_digest` in a request file, alongside its ref
|
|
79
|
-
with exit code 1, before any of it is
|
|
78
|
+
and `template_digest` in a request file, alongside its ref; the discovery commands accept the
|
|
79
|
+
same options. A fetched pack that does not match is refused with exit code 1, before any of it is
|
|
80
|
+
read. A pack pinned to both is cached, and a cached copy is checked against the digest but not
|
|
81
|
+
fetched again, so a tag moved after the first fetch is not noticed until `--no-cache` or a new
|
|
82
|
+
cache entry fetches it.
|
|
80
83
|
- The digest format is stable. It is a SHA-256 over every file in the checkout, without `.git`, in
|
|
81
84
|
order of their path components compared as case-sensitive strings. For each file, it hashes the
|
|
82
85
|
path with forward slashes, a NUL byte, the file's bytes, and another NUL byte.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytemplate-uv"
|
|
3
|
-
version = "3.
|
|
3
|
+
version = "3.4.0"
|
|
4
4
|
description = "A deterministic application factory: uv-native Python and FastAPI projects from profiles, composable components, and template packs."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytemplate-uv"
|
|
3
|
-
version = "3.
|
|
3
|
+
version = "3.4.0"
|
|
4
4
|
description = "A deterministic application factory: uv-native Python and FastAPI projects from profiles, composable components, and template packs."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -19,7 +19,7 @@ from __future__ import annotations
|
|
|
19
19
|
from pytemplate.configuration import ConfigurationError
|
|
20
20
|
from pytemplate.configuration import load_render_request as load_request
|
|
21
21
|
from pytemplate.errors import PackError, RenderError, RequestError
|
|
22
|
-
from pytemplate.packs import TemplateSource, open_catalog
|
|
22
|
+
from pytemplate.packs import PackManifest, TemplateSource, open_catalog, read_pack_manifest
|
|
23
23
|
from pytemplate.profiles import (
|
|
24
24
|
Catalog,
|
|
25
25
|
Component,
|
|
@@ -45,6 +45,7 @@ __all__ = [
|
|
|
45
45
|
"ConfigurationError",
|
|
46
46
|
"ManifestError",
|
|
47
47
|
"PackError",
|
|
48
|
+
"PackManifest",
|
|
48
49
|
"Profile",
|
|
49
50
|
"ProfileNotFoundError",
|
|
50
51
|
"RenderError",
|
|
@@ -58,6 +59,7 @@ __all__ = [
|
|
|
58
59
|
"bundled_catalog",
|
|
59
60
|
"load_request",
|
|
60
61
|
"open_catalog",
|
|
62
|
+
"read_pack_manifest",
|
|
61
63
|
"plan",
|
|
62
64
|
"render",
|
|
63
65
|
"resolve",
|
|
@@ -27,8 +27,11 @@ from pytemplate.cli_options import (
|
|
|
27
27
|
ForceOption,
|
|
28
28
|
JsonOption,
|
|
29
29
|
NameOption,
|
|
30
|
+
NoCacheOption,
|
|
30
31
|
NoInputOption,
|
|
31
32
|
RequestOptions,
|
|
33
|
+
TemplateCommitOption,
|
|
34
|
+
TemplateDigestOption,
|
|
32
35
|
TemplateOption,
|
|
33
36
|
TemplateRefOption,
|
|
34
37
|
YesOption,
|
|
@@ -294,10 +297,20 @@ create_project_app.command()(create)
|
|
|
294
297
|
|
|
295
298
|
|
|
296
299
|
@contextlib.contextmanager
|
|
297
|
-
def _catalog(
|
|
300
|
+
def _catalog(
|
|
301
|
+
template: str | None,
|
|
302
|
+
template_ref: str | None,
|
|
303
|
+
as_json: bool,
|
|
304
|
+
*,
|
|
305
|
+
commit: str | None = None,
|
|
306
|
+
digest: str | None = None,
|
|
307
|
+
no_cache: bool = False,
|
|
308
|
+
) -> Iterator[Catalog]:
|
|
298
309
|
"""Open the bundled catalog or a pack, reporting pack errors with the CLI exit codes."""
|
|
299
310
|
try:
|
|
300
|
-
with open_catalog(
|
|
311
|
+
with open_catalog(
|
|
312
|
+
template, template_ref, commit=commit, digest=digest, use_cache=not no_cache
|
|
313
|
+
) as (catalog, _, _):
|
|
301
314
|
yield catalog
|
|
302
315
|
except (*_REQUEST_ERRORS, RenderError) as error:
|
|
303
316
|
_fail(error, as_json)
|
|
@@ -307,10 +320,20 @@ def _catalog(template: str | None, template_ref: str | None, as_json: bool) -> I
|
|
|
307
320
|
def list_profiles_command(
|
|
308
321
|
template: TemplateOption = None,
|
|
309
322
|
template_ref: TemplateRefOption = None,
|
|
323
|
+
template_commit: TemplateCommitOption = None,
|
|
324
|
+
template_digest: TemplateDigestOption = None,
|
|
325
|
+
no_cache: NoCacheOption = False,
|
|
310
326
|
as_json: JsonOption = False,
|
|
311
327
|
) -> None:
|
|
312
328
|
"""List the profiles of the bundled catalog or a template pack."""
|
|
313
|
-
with _catalog(
|
|
329
|
+
with _catalog(
|
|
330
|
+
template,
|
|
331
|
+
template_ref,
|
|
332
|
+
as_json,
|
|
333
|
+
commit=template_commit,
|
|
334
|
+
digest=template_digest,
|
|
335
|
+
no_cache=no_cache,
|
|
336
|
+
) as catalog:
|
|
314
337
|
profiles = catalog.profiles
|
|
315
338
|
if as_json:
|
|
316
339
|
_echo_json([_profile_dict(profile) for profile in profiles])
|
|
@@ -341,10 +364,20 @@ def describe_profile(
|
|
|
341
364
|
profile_id: Annotated[str, typer.Argument(help="Profile identifier")],
|
|
342
365
|
template: TemplateOption = None,
|
|
343
366
|
template_ref: TemplateRefOption = None,
|
|
367
|
+
template_commit: TemplateCommitOption = None,
|
|
368
|
+
template_digest: TemplateDigestOption = None,
|
|
369
|
+
no_cache: NoCacheOption = False,
|
|
344
370
|
as_json: JsonOption = False,
|
|
345
371
|
) -> None:
|
|
346
372
|
"""Show metadata and template inputs for a profile."""
|
|
347
|
-
with _catalog(
|
|
373
|
+
with _catalog(
|
|
374
|
+
template,
|
|
375
|
+
template_ref,
|
|
376
|
+
as_json,
|
|
377
|
+
commit=template_commit,
|
|
378
|
+
digest=template_digest,
|
|
379
|
+
no_cache=no_cache,
|
|
380
|
+
) as catalog:
|
|
348
381
|
try:
|
|
349
382
|
profile = catalog.profile(profile_id)
|
|
350
383
|
except ProfileNotFoundError as error:
|
|
@@ -375,10 +408,20 @@ def describe_profile(
|
|
|
375
408
|
def list_components_command(
|
|
376
409
|
template: TemplateOption = None,
|
|
377
410
|
template_ref: TemplateRefOption = None,
|
|
411
|
+
template_commit: TemplateCommitOption = None,
|
|
412
|
+
template_digest: TemplateDigestOption = None,
|
|
413
|
+
no_cache: NoCacheOption = False,
|
|
378
414
|
as_json: JsonOption = False,
|
|
379
415
|
) -> None:
|
|
380
416
|
"""List the components of the bundled catalog or a template pack."""
|
|
381
|
-
with _catalog(
|
|
417
|
+
with _catalog(
|
|
418
|
+
template,
|
|
419
|
+
template_ref,
|
|
420
|
+
as_json,
|
|
421
|
+
commit=template_commit,
|
|
422
|
+
digest=template_digest,
|
|
423
|
+
no_cache=no_cache,
|
|
424
|
+
) as catalog:
|
|
382
425
|
components = catalog.components
|
|
383
426
|
if as_json:
|
|
384
427
|
_echo_json([_component_dict(component) for component in components])
|
|
@@ -407,10 +450,20 @@ def describe_component(
|
|
|
407
450
|
component_id: Annotated[str, typer.Argument(help="Component identifier")],
|
|
408
451
|
template: TemplateOption = None,
|
|
409
452
|
template_ref: TemplateRefOption = None,
|
|
453
|
+
template_commit: TemplateCommitOption = None,
|
|
454
|
+
template_digest: TemplateDigestOption = None,
|
|
455
|
+
no_cache: NoCacheOption = False,
|
|
410
456
|
as_json: JsonOption = False,
|
|
411
457
|
) -> None:
|
|
412
458
|
"""Show metadata for a component."""
|
|
413
|
-
with _catalog(
|
|
459
|
+
with _catalog(
|
|
460
|
+
template,
|
|
461
|
+
template_ref,
|
|
462
|
+
as_json,
|
|
463
|
+
commit=template_commit,
|
|
464
|
+
digest=template_digest,
|
|
465
|
+
no_cache=no_cache,
|
|
466
|
+
) as catalog:
|
|
414
467
|
try:
|
|
415
468
|
component = catalog.component(component_id)
|
|
416
469
|
except ComponentNotFoundError as error:
|