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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51817bc7f1e9ac8d10098134e0d034489ff9c63f456a9d13f00e5602d4fa2e22 |
|
MD5 | e3bba61aeccc8814316586a6e774d1a6 |
|
BLAKE2b-256 | c2fbe2b9b942145e5c1dd3a924c8f2e56d4ee363068470acf4513bedfdba7f7a |