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 -name 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 Distributions
Built Distribution
Hashes for flask_setup-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38792579f8600e6ed972e248296f755f6480ecbf2b220170bf4e420c333f61ae |
|
MD5 | 00c8cbc7d6d4c0979c5d68eb9b8a9d88 |
|
BLAKE2b-256 | c1dcab6e4f383180843441960bdab49fab3ac3267033e4cb33e97708b93f2b7d |