This release is a pre-release and may not be stable for production use.
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 FastAPI 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 generate --help
FastAPI/Flask project generator with the best folder structure. Generate a new FastAPI/Flask project
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --type -t TEXT Type of that should be generated. Default type is fast_api. Valid Options are: [fast_api, flask] [default: fast_api |
│ --name -n TEXT Name of the app [default: sampel_app] |
│ --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. |
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
-
Help
faag --help -
Generate a FastAPI app
faag generate -
Generate a FastAPI/Flask App with custom app name
faag --name myapp faag -n myapp
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 0.0.1.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| faag-0.0.1.dev0.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| faag-0.0.1.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.5 kB
Release files / faag-0.0.1.dev0.tar.gz
| Download URL | faag-0.0.1.dev0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d584b8ba9f8c48f4954ebdf3152a818e1b6506beefc56001180195f8a065564
|
|
BLAKE2b-256 checksum How to use checksums |
ad5c42290035ccf773718899dcdd38dcf96e61a88346e584ffaa7df9f1ab7db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Darwin/22.3.0
|
Release files / faag-0.0.1.dev0-py3-none-any.whl
| Download URL | faag-0.0.1.dev0-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1273934273f433411b7aeea90802751db3a1c77fdc98c51bb0d32578798d45fd
|
|
BLAKE2b-256 checksum How to use checksums |
9c7e5294870e5fee718be4743ebf7bff5cdde88f29b0a755aa5449d15c03e439
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Darwin/22.3.0
|