Skip to main content

Flask Project Template

Project description

flask_template

templates used to fast create flask project.

install

pip install flask_template

usage

flasktemplate create [-t simple] project_name

will create a flask project directory named after project_name on current path.

flasktemplate create -t mongo project_name

will create a flask project directory named after project_name on current path. mongo template will use mongodb instead of mysql.

flasktemplate list will list current supported templates.

normal project initial usage flow:

  1. cd {project_name}
  2. pyenv virtualenv {python_version} {virtualenv_name}
  3. pyenv activate {virtualenv_name}
  4. modify SQLALCHEMY_DATABASE_URI with correct database account and database name
  5. design and develop models and migrate, apply them into database with:
    1. python manage.py db migrate
    2. python manage.py db upgrade
  6. design develop apis

update logs

0.4.3

  1. add mongo template
    1. use mongodb instead of mysql as database
    2. add hamlet user authentication, send email
    3. add celery wokers
    4. add send email, tar/zip file, send file
    5. add dockerfile

0.4.2

  1. update requirements
  2. fix bugs

0.4.1

  1. modify config.py;

  2. format by pycodestyle;

0.4

  1. add migrations directory,modify env.py script to support alembic:include, alembic:exclude options in alembic.ini to limit alembic dectecting tables;

  2. fix some typo;

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_template-0.4.4.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

flask_template-0.4.4-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file flask_template-0.4.4.tar.gz.

File metadata

  • Download URL: flask_template-0.4.4.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.1

File hashes

Hashes for flask_template-0.4.4.tar.gz
Algorithm Hash digest
SHA256 2dd91d2e442f831500975f1b470e0f6d16b3c900d3faaa8d4c1e525888c1feeb
MD5 9fbe290e84fec171b99991fadf8dff0c
BLAKE2b-256 ddc516f5048b475e5cd95c021a89e06f64f40fc1552dfb6999a11f2d28cc13ae

See more details on using hashes here.

File details

Details for the file flask_template-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: flask_template-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 32.1 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.1

File hashes

Hashes for flask_template-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 41b2f4ec4fafb15cd24055d3bb7b1f452536b2615810c5ae1953cfd247f3cc13
MD5 036036822ba122e93e426e6ee0141a70
BLAKE2b-256 29520512798d2573332cd0c463a674fd7258cc1a006c3cdcd6986c7d6a41a7ac

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