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
- restful: flask restful API 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
File details
Details for the file Flask-Board-0.2.0.tar.gz
.
File metadata
- Download URL: Flask-Board-0.2.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34fd95d5758ff956e4fe9a92e6357f880b8a717134043bbdda87654bd4cf414 |
|
MD5 | 0ee24310716ec3f97088eb456b842764 |
|
BLAKE2b-256 | 9b0bba88e4c7e30138f9aacc679ade8cdd216aa195622c59c0b34eb7bd598af0 |
File details
Details for the file Flask_Board-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: Flask_Board-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1a3945f4402c5759dc3a2d3c00b3e7e12ab619e304039f57d054c58fa8e1b4 |
|
MD5 | d67c0c8b28eba38cae67e363705fc4f9 |
|
BLAKE2b-256 | 59afbf328a54173190645168e49b7b0b9c7acca53a6fa820f8b0c31b9336815f |