PyTemplate UV: A Modern Python Project Generator
Project description
PyTemplate UV
Overview
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.
Features
- 🚀 Quick project initialization
- 🔧 Support for multiple project templates (FastAPI, Standard Python)
- 📦 Integrated with
uvpackage management - 🧪 Comprehensive testing infrastructure
- 🔍 Linting and type checking support
Prerequisites
- Python 3.11+
uvpackage managercookiecutter
Installation
pip install pytemplate-uv
# or
uv pip install pytemplate-uv
Usage
Create a Project
# Create a standard Python project (default)
pytemplate-uv create-project
# Create a FastAPI project
pytemplate-uv create-project --template fastapi
# Create a project with a custom name
pytemplate-uv create-project --name my-awesome-project
# Create a project with custom template and name
pytemplate-uv create-project --template fastapi --name my-api-project
Project Creation Options
--template: Choose the project template (default: pyproject)- Options:
pyproject,fastapi
- Options:
--name: Specify a custom project name- Additional template-specific options can be passed as needed
Next Steps After Project Creation
cdinto your project directory- Run
uv venvto create a virtual environment - Run
uv pip install -e .to install dependencies - Run
make setupto set up the development environment
Development
Setup
-
Clone the repository
-
Create a virtual environment:
uv venv source .venv/bin/activate
-
Install development dependencies:
uv pip install -e .[dev]
Running Tests
pytest
Linting
ruff check .
black .
mypy .
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
MIT License - See LICENSE for details.
Contact
Leo Liu - GitHub
Simplifying Python project creation with modern best practices 🐍✨
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytemplate_uv-2.0.0.tar.gz.
File metadata
- Download URL: pytemplate_uv-2.0.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e677683b3502119deff8ebc47bb0621b0a5f84b682662405ecee6f7a19226cea
|
|
| MD5 |
00e4b8121493b5f59199b0b1e84b8402
|
|
| BLAKE2b-256 |
02d31a15bd3c5232e09b4f1d20ddbcf8ceb46da69dcf2d6a18b997b33c7480bf
|
File details
Details for the file pytemplate_uv-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pytemplate_uv-2.0.0-py3-none-any.whl
- Upload date:
- Size: 52.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b377f10bd289408cede71c21437215c417c21b1bc927ac11d899e9f1503ea8
|
|
| MD5 |
dc8a09050f43c19f0d18a101c7255b81
|
|
| BLAKE2b-256 |
92b0df3f1f8d96cfac0d64995c24d08f450910b321bec9122659fd9ffe69a5c9
|