Skip to main content

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

Flask-Board-0.1.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

Flask_Board-0.1.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file Flask-Board-0.1.2.tar.gz.

File metadata

  • Download URL: Flask-Board-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 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

Hashes for Flask-Board-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a918b7f5a35e4c53e2b0e38bb44b21ee9e37dfa8aa3eb225a98ef49432ee1023
MD5 b7491a00a5296ff61c43098f6a62ca4b
BLAKE2b-256 ee5489e717997be2ae8a03b5fbd3c6e1c19d3fd569d909d23d6aa87aebafbb4a

See more details on using hashes here.

File details

Details for the file Flask_Board-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: Flask_Board-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.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

Hashes for Flask_Board-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cf5bf03cb5739713e61ee10bb6c6c81f15d272333b17df2266130ce0b879df
MD5 ddf0c331b6fd2a738efc4462934b4433
BLAKE2b-256 bced7601be1aebb3d37ef4b14c530592a5b71705e257e191960898d148ffcf2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page