Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alabuga_fastapi_generator-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alabuga_fastapi_generator-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file alabuga_fastapi_generator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for alabuga_fastapi_generator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1bbc1e259796519bce2175ee0522a5d72c6811d73ca003639402e363875010a5
MD5 e2e99ed6cf123cfefa84e227b3903e50
BLAKE2b-256 f5512b849e6b53e1a9da6b2b03df1f4450b14cd0236ac87d48cd51d4d0fcb957

See more details on using hashes here.

File details

Details for the file alabuga_fastapi_generator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alabuga_fastapi_generator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f704ae343ad48bae21e94703c6738324658b7d8157f92c8b90e770329541540
MD5 0792c77096e954cd5dd58ca44ebad7b8
BLAKE2b-256 6ff07626dda96b954a3ee5c972f306374a91d4e20b408117f237c0b1f51dedac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page