A simple tool to help you setup a flask project for web development, API development and just any basic app
Project description
flask-setup
Flask Setup Tool
INSTALLATION
$ pip install flask-setup
USAGE
- create a virtual environment and activate it:
$ python -m venv venv
$ source venv/bin/activate
$ flask_setup -help
FLAGS
-
init: Intialize Flask-Setup in project folder; this makes sure you dont need to pass project name each time you call flask_setup
$ flask_setup init --project_name
-
-basic: Builds a basic flask app
$ flask_setup -basic
-
-standard: Builds a full web flask app
$ flask_setup -standard
-
b or -blueprint: this depends on the first two above. Adds blueprint to the project: e.g.
$ flask_setup -basic -blueprint
$ flask_setup -standard -blueprint
-
-api: this adds flask-marshmallow and marshmallow-sqlalchemy to the project to help serialize your models e.g.:
$ flask_setup -standard -blueprint -api
-
--project_name: you pass a double flag non-spaced name to name your project default is 'project'. e.g.:
$ flask_setup --myproject -basic -blueprint
-
-g or -generate: pass this alongside b or -blueprint flag to generate blueprint on existing project. e.g.:
$ flask_setup --myproject g -blueprint myblueprintname
or if you've called theinit
arg you can simply do:$ flask_setup g -blueprint myblueprintname
-
-d or -destroy: pass this alongside b or -blueprint flag to remove a blueprint from existing project. e.g.:
$ flask_setup --myproject d -blueprint myblueprintname
or if you've called theinit
arg you can simply do:$ flask_setup d -blueprint myblueprintname
-
-g or -generate: pass this alongside m or -marshmallow flag to generate marshmallow on existing project. e.g.:
$ flask_setup --myproject g -marshmallow
or if you've called theinit
arg you can simply do:$ flask_setup g -marshmallow
-
-d or -destroy: pass this alongside m or -marshmallow flag to remove a marshmallow setup from existing project. e.g.:
$ flask_setup --myproject d -marshmallow
or if you've called theinit
arg you can simply do:$ flask_setup d -marshmallow
-
-g or -generate: pass this alongside -model flag to generate model on existing project. e.g.:
$ flask_setup --myproject g -model
or if you've called theinit
arg you can simply do:$ flask_setup g -model
-
-d or -destroy: pass this alongside -model flag to remove a model setup from existing project. e.g.:
$ flask_setup --myproject d -model
or if you've called theinit
arg you can simply do:$ flask_setup d -model
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for flask_setup-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2feacce05ab9328168f011328c3d841d229900913bf08a5bde19424c25d84cfd |
|
MD5 | a3bda6af0ba4795c9d1c3053c216c2dd |
|
BLAKE2b-256 | a56e008f48821dc71c786b9841eedcc51fd47ed971608a65c9cbaab88f35f636 |