Skip to main content

FastGen

A CLI for your next FastAPI Project


👀 Take A Look

this is a glanc of the project structure you will have once you use FastGen

dirs_images

Navigate Quickly

installation
commands

✨ Installation

Using pip :

$ python -m pip install fastgen

Using Poetry :

$ poetry add fastgen

🧭 Commands

Usage:

$ fastgen [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • info
  • new

fastgen info

Usage:

$ fastgen info [OPTIONS]

Options:

  • --help: Show this message and exit.

fastgen new

Usage:

$ fastgen new [OPTIONS] ⭐ Project Name

Arguments:

  • ⭐ Project Name: required

Options:

  • --dir 📁 Directory Path
  • --package-manager 📦 Package Manager: [default: pip] ( Options are pip , poetry )
  • --migrations / --no-migrations: [default: False]
  • --docker / --no-docker: [default: False]
  • --testing / --no-testing: [default: False]
  • --database 📅 Database: [default: postgresql] ( Options are postgresql,mysql,sqlite )
  • --orm ⚙️ ORM: [default: False]
  • --help: Show this message and exit.

fastgen g

Usage:

$ fastgen g [OPTIONS] <component> <component_name>

Available Components

Component In stock
router generates new rotuer at app/api/routers
model generates new sqlmodel or sqlalchemy mode at app/database/models
schema generates new pydantic schema at app/api/schemas

Options

  • --model-type : available only for model components , optional values are ( sqlmodel , sqlalchemy )

  • --path : specifiy where to create the component RELATIVE TO THE CURRENT WORKING DIRECOTRY if not in default path

  • Note : the naming is preferred to be in lower case so it can be resolved correctly

Arguments


🪲 Encountered A Problem !

feel free to open an issue discussing the problem you faced

🤝🏻 Contributing

please refer to Contribution Guide

Metadata

Release files for fastgen 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastgen 0.3.5
File Size Uploaded
fastgen-0.3.5.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastgen 0.3.5
File Interpreter ABI Platform
fastgen-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / fastgen-0.3.5.tar.gz

Download URL fastgen-0.3.5.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6692971c7fc424936c37b913f14b14c3e51da598db56d024375d9401601a7f6d
BLAKE2b-256 checksum
How to use checksums
0cdbbc61669e1cd3fa375827d10ed391daff2c070eb30bbe93c7421f994fad44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / fastgen-0.3.5-py3-none-any.whl

Download URL fastgen-0.3.5-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f45a79705c9d538b83a45bd37fbcd713d951d8b23b1c63a3baf1a9bc3653e12
BLAKE2b-256 checksum
How to use checksums
6403b1d1048662e2081d21010d239480989ad3523fb5ba13a48cd3e88ca38edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page