Build base flask app depends on template.
Project description
Flask Board
Description
Flask is a powerful and flexible web framework. Since it is so flexible, we have to "copy" some codes to start a new production project. Flask Board is aimed to start a flask project depends on some carefully prepared templates.
Installation
pip install flask-board
After installation, we can see flask board installed as a flask command plugin.
flask board --help
Usage
Create flask project depends on pre defined templates.
flask board your-project
Same as used the default
template.
flask board your-project -t default
Available templates
- default: default flask web app
- celery: flask app with celery
Change the project directory
Change project directory by option -d
, default use the current directory.
flask board your-project -d <path-to-directory>
Use your own project template
Use -t
option point to the custom project directory.
flask board your-project -t <path-to-your-tempalte-directory>
We use jinja2 engine to render all files in the template directory.
We can also exclude files in the template directory (default excludes file patterns *.pyc, *.pyo, *.pyd, *.egg, *.log, *.so, *.zip, *.tar, *.tar.gz).
And exclude directories and all files under it (default excludes directories .git, __pycache__
, *.egg-info, build, dist, .idea).
flask board your-project -t <path-to-your-template-directory> --excludes="*.pyc,*.log" excludes_dir=".git,__pycache__"
Project details
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_Board-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c214dfb964f736635fa1011d0b48e8d3b6247610b52dfc05126815ac449707 |
|
MD5 | fdb36b4f20354b4542820e002954bf09 |
|
BLAKE2b-256 | 40d0ec0366b9d67415e1c1bce8ef3fb157944bbc8d3f86670eb5d59a53d8b111 |