CLI tool for generating FastAPI project components using Jinja2 templates
Project description
FastAPI Project Generator
License: MIT
A CLI tool for generating FastAPI project components using Jinja2 templates. Quickly create services, routers, and authentication modules with predefined templates.
Features
-
Dynamic file generation: Create model‑specific services and routers with variable substitution
-
Static file generation: Copy authentication components without modifications
-
Jinja2 templating: Use flexible templates for code generation
-
Typer CLI: Intuitive command‑line interface with help documentation
-
UTF‑8 encoding: Full Unicode support for generated files
-
Error handling: Clear feedback for missing templates and operations
Installation
# Generate a service for a model
python generator.py --service user
# Generate a router for a model
python generator.py --router product
# Generate authentication components
python generator.py --auth-service
python generator.py --auth-core
python generator.py --auth-router
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 alabuga_fastapi_generator-1.0.0.tar.gz.
File metadata
- Download URL: alabuga_fastapi_generator-1.0.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bbc1e259796519bce2175ee0522a5d72c6811d73ca003639402e363875010a5
|
|
| MD5 |
e2e99ed6cf123cfefa84e227b3903e50
|
|
| BLAKE2b-256 |
f5512b849e6b53e1a9da6b2b03df1f4450b14cd0236ac87d48cd51d4d0fcb957
|
File details
Details for the file alabuga_fastapi_generator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: alabuga_fastapi_generator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f704ae343ad48bae21e94703c6738324658b7d8157f92c8b90e770329541540
|
|
| MD5 |
0792c77096e954cd5dd58ca44ebad7b8
|
|
| BLAKE2b-256 |
6ff07626dda96b954a3ee5c972f306374a91d4e20b408117f237c0b1f51dedac
|