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 suggesstions and issues. This package is made with Typer.
Installation
poetry add faag-cli
pip install faag-cli
Usage
Usage: faag [OPTIONS]
Generate a new FastAPI/Flask project
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --app -a TEXT Type of that should be generated. Default type is fast_api. Valid Options are: [fast_api, flask] [default: fast_api |
│ --app-name -an 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 a Fast APP with custom app name
faag --app-name myapp faag -an 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 poetry
orpip3 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
- Incase of error run
git config --global --unset-all core.hooksPath
orgit 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.
Log in or sign up for Devpost to join the conversation.