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
$ fs --flag argument
USAGE DETAILS
-
--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
$ fs --init project_name
OR$ fs -i project_name
-
--build or -b: Takes flask app type to build; currently support ['api', 'standard', 'basic']
$ fs --build api
OR$ fs -b api
-
--generate or -g: Takes generator type; currently supports ['model', 'marshmallow', 'blueprint'] e.g.
$ fs --generate blueprint -blueprint api
this will generate a blueprint with the name 'api' OR$ fs --generate model
-
--destroy or -d: pass this alongside a generator ['marshmallow', 'blueprint', 'model'] e.g.:
$ fs -d blueprint -blueprint myblueprintname
OR$ fs -d model
-
--add or -a: pass this alongside a module e.g.:
$ fs -install flask
this will install flask and freeze to requirements file -
--remove or -r: pass this alongside a module e.g.:
$ fs -remove 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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e4ad59fb7d81b8ace96bc900fce9bb03dd1766458491214546182736be04e55 |
|
MD5 | 26bd554809f7115228fcf14a8dbe9d95 |
|
BLAKE2b-256 | 045499111d26cb51a50fb0fcca10ea77f27fd9a490ee02296a433ba9e3b9f3ea |