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
Navigate Quickly
✨ 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:
infonew
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastgen-0.3.5.tar.gz | 12.2 kB | Without provenance | Details for fastgen-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastgen-0.3.5-py3-none-any.whl | Python 3 | none | any | Details for fastgen-0.3.5-py3-none-any.whl |
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
|
Security for fastgen 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.