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 Distribution
Built Distribution
Hashes for flask_setup-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805624a154e93ca4c449dcd4b98392cbf3816beb7337c143635e99a71e8e65f7 |
|
MD5 | 30cdf06e12c31ac109fc8639d6fbcb25 |
|
BLAKE2b-256 | b411c24f20e9978888d14432ca431519ec7d77b024250e381e21b235890e8eec |