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-0.1.0.tar.gz (4.7 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-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alabuga_fastapi_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3fb30ab20d8e376f26a5141cb03f023bf8384b757889497a365a93c76ab3d9d6
MD5 8e141ec1294c2245323ca0a1109eab13
BLAKE2b-256 17a9c24cce76a741d35790b3b072db72f0d9712ab4f9b056b654be20559ad180

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alabuga_fastapi_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23f91fa8bd1fee489389e403c5e7e04245995efb1922cbdda9b8c06fb7e8dfee
MD5 76502957c1b8cfe20c28c6201894b56d
BLAKE2b-256 b22925fceda5ab5c72a2182721fc42040ebd3140e682e4e5a4ca377d6c49f497

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