Faag-CLI
FastAPI/Flask project generator with the best folder structure. (Fast/Flask Architecture App Generator)
Flask / FastAPI app generator with a maintainable architecture and sample codes for the best practices.
Currently, supports generation of FastAPI apps only. Flask support is coming soon. Currently, in pre-release. Feel
free
to raise suggestions and issues. This package is made with Typer.
Installation
poetry add faag-cli
pip install faag-cli
Usage
Currently, we support generation of apps only. Adding support for other features like adding models, routes, etc. is coming soon.
To generate a FastAPI/Flask app
faag generate will automatically generate a Fast App by default. You can also specify the type of app you want to
generate with the --type flag. Default app will be generated with 'sample_app' as the name. You can also specify the
name of the app with the --name flag.
Usage: faag [OPTIONS] COMMAND [ARGS]...
FastAPI/Flask project generator with the best folder structure. Generate a new app using Faag CLI.
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version -v Prints the version of Faag CLI │
│ --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 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ generate FastAPI/Flask project generator with the best folder structure. Generate a new app using Faag CLI │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
-
Help
faag --help -
Generate a FastAPI app
faag generate -
Generate a FastAPI/Flask App with custom app name
faag generate --type fast --name fast_app faag generate -t flask -n flask_app
-
View options for generating a FastAPI/Flask app
faag generate --help
Setup for development
Virtual environment setup with Poetry
- Create a fork of the repository
- Clone the repository to your local machine
git clone git@github.com:<username>/PyNotion.git- Install poetry with
pip install poetryorpip3 install poetry- Navigate to the root of the project and run
poetry install
Setup Pre-commit hooks
- Install pre-commit hooks
pre-commit install- Migrate pre-commit configs
pre-commit migrate-config- In case of error run
git config --global --unset-all core.hooksPathorgit config --unset-all core.hooksPath
Contribution Guidelines
Thank your for taking your valuable time to contribute to Faag-CLI. Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Metadata
Release files for faag-cli 0.2.1
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 |
|---|---|---|---|---|
| faag_cli-0.2.1.tar.gz | 16.5 kB | Without provenance | Details for faag_cli-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faag_cli-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for faag_cli-0.2.1-py3-none-any.whl |
Total release size: 42.3 kB
Release files / faag_cli-0.2.1.tar.gz
| Download URL | faag_cli-0.2.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a7161a9cd92cba9eef25f25f1c877708fb69f3d8417dffd8029886eb3ebb581
|
|
BLAKE2b-256 checksum How to use checksums |
667feb5580fc2f46d59bc2b0ed4c3c00e9421bf06dcc36a5d2d34ab52d900075
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / faag_cli-0.2.1-py3-none-any.whl
| Download URL | faag_cli-0.2.1-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a7a94233c3490aa47f535dd78c4cd33aecdb81a13d4e2af6a859ee062fb9806
|
|
BLAKE2b-256 checksum How to use checksums |
87514230e8898e48be76b6ce80937979c03e24a70512978678703dcde531dd3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for faag-cli 0.2.1
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.