Skip to main content

A CLI for your next FastAPI project

Project description

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

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

fastgen-0.3.5.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

fastgen-0.3.5-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file fastgen-0.3.5.tar.gz.

File metadata

  • Download URL: fastgen-0.3.5.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fastgen-0.3.5.tar.gz
Algorithm Hash digest
SHA256 6692971c7fc424936c37b913f14b14c3e51da598db56d024375d9401601a7f6d
MD5 9a273b6f76cfd9bde8095486c3903692
BLAKE2b-256 0cdbbc61669e1cd3fa375827d10ed391daff2c070eb30bbe93c7421f994fad44

See more details on using hashes here.

File details

Details for the file fastgen-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: fastgen-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fastgen-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3f45a79705c9d538b83a45bd37fbcd713d951d8b23b1c63a3baf1a9bc3653e12
MD5 41c9b50624baffd5fbf88261f4136f64
BLAKE2b-256 6403b1d1048662e2081d21010d239480989ad3523fb5ba13a48cd3e88ca38edf

See more details on using hashes here.

Supported by

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