Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-create-0.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_create-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file flask-create-0.0.2.tar.gz.

File metadata

  • Download URL: flask-create-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for flask-create-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2ef6d5f9790f168fdc2ee98b09b3a3d519525f9b574d948b5b308491a12c1bd3
MD5 2132b35a2c965895d6b7e172ded918f3
BLAKE2b-256 c2e10da21e809220cab9ae231e468b80aab630166688a997f6e5d346b005000b

See more details on using hashes here.

File details

Details for the file flask_create-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: flask_create-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for flask_create-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57a60c789628ad471f05731505f5bb4212dd223f146376b414f1bc38714c486c
MD5 c9443d69eae36dd81027866207839f3d
BLAKE2b-256 57e87b89a4484e1244f0eef397d69112fecc52461d48160e400a7fd8adf09919

See more details on using hashes here.

Supported by

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