A tool to create flask boilerplate code
Project description
flask create readme
Flask-Create
Author: Deekshith Anand
A python package to create production grade flask boiler plate setup.
Usage:
Create venv inside the project folder.
pip install flask-create
Once it is installed, in your root project directory hit this:
flask-create
That's it you are all set and good to go!
Important!
You need to create a .env file with key value pairs containing all the required credentials.
Default Factory setup
This approach embraces blueprints. It is implemented in the template. All your code lies inside the src, which can be treated like a package. The other related files like config files, scripts files, etc . . are included outsied src(which will be you project repo)
To init db /invoke SQLAlchemy creatall():
Define your models in models.py . A default script is provided in scripts.py.You can have your own scripts defined here along with their equivalent commands(Look into flask-script extension for more). To int db run this from outside src(i.e., root project folder):
python scripts.py init-db
To run flask app run this from root folder where flask-create was called:
python wsgi.py
Note : - The default config is provided for dev. Production config can be modified by user in config.py
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_create-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a60c789628ad471f05731505f5bb4212dd223f146376b414f1bc38714c486c |
|
MD5 | c9443d69eae36dd81027866207839f3d |
|
BLAKE2b-256 | 57e87b89a4484e1244f0eef397d69112fecc52461d48160e400a7fd8adf09919 |