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 help
FLAGS
-
-basic: Builds a basic flask app
$ flask_setup -basic
-
-web: Builds a full web flask app
$ flask_setup -web
-
-blueprint: this depends on the first two above. Adds blueprint to the project: e.g.
$ flask_setup -basic -blueprint
$ flask_setup -web -blueprint
-
-api: this adds flask-marshmallow and marshmallow-sqlalchemy to the project to help serialize your models e.g.:
$ flask_setup -web -blueprint -api
-
--project_name: you pass a double flag non-spaced name to name your project default is 'project'. e.g.:
$ flask_setup --myproject -basic -blueprint
-
-g or -generate: pass this alongside -blueprint flag to generate blueprint on existing project. e.g.:
$ flask_setup --myproject g -blueprint myblueprintname
-
-d or -destroy: pass this alongside -blueprint flag to remove a blueprint on existing project. e.g.:
$ flask_setup --myproject d -blueprint myblueprintname
-
-g or -generate: pass this alongside -marshmallow flag to generate marshmallow on existing project. e.g.:
$ flask_setup --myproject g -marshmallow
-
-d or -destroy: pass this alongside -blueprint flag to remove a blueprint on existing project. e.g.:
$ flask_setup --myproject d -marshmallow
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.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a09052561c12bb3d15831f36125f5ad733090fcf4f45974dcd6b37bf9448307 |
|
MD5 | d5fd6e7ae5710743c7da39d896229e20 |
|
BLAKE2b-256 | 4c933108cf2d8858afdd533f38c26c4370236933256490efad976ddece067c7d |