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 --flag argument
FLAGS
-
--init or -i: 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
OR$ flask_setup -i project_name
-
--build or -b: Takes flask app type to build; currently support ['api', 'standard', 'basic']
$ flask_setup --build api
OR$ flask_setup -b api
-
--generate or -g: Takes generator type; currently supports ['model', 'marshmallow', 'blueprint'] e.g.
$ flask_setup --generate blueprint -blueprint api
this will generate a blueprint with the name 'api' OR$ flask_setup --generate model
-
--destroy or -d: pass this alongside a generator ['marshmallow', 'blueprint', 'model'] e.g.:
$ flask_setup -d blueprint -blueprint myblueprintname
OR$ flask_setup -d model
-
--install or -install: pass this alongside a module e.g.:
$ flask_setup -install flask
this will install flask and freeze to requirements file -
--uninstall or -uninstall: pass this alongside a module e.g.:
$ flask_setup -uninstall flask
this will uninstall flask and freeze to requirements file
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd42c2f742ba0b3f6089832d471343a4710c43d99f613d7883df777e51c55431 |
|
MD5 | 079697d505b755cb9c0fc7279d26bc2e |
|
BLAKE2b-256 | 9dec1dc6d5876d44a4ccd17f9ce9f176f99f417369bebb3f5ad543c906d27e70 |