Skip to main content

Bootstraps Flask projects

Project description

Bootstraps Flask projects

Install

$ pip install flaskinit

Usage

Initialize a simple Flask project:

$ flaskinit project

         flaskinit

   project package: project/__init__.py
     views package: project/views/__init__.py
         blueprint: project/views/root.py
      requirements: requirements.txt
 extensions module: project/extensions.py
     config module: project/config.py
        app module: project/app.py
       wsgi module: project/wsgi.py
  runserver module: runserver.py

Add blueprints:

$ flaskinit project -b admin

         flaskinit

   project package: project/__init__.py
     views package: project/views/__init__.py
         blueprint: project/views/admin.py
         blueprint: project/views/root.py
      requirements: requirements.txt
 extensions module: project/extensions.py
     config module: project/config.py
        app module: project/app.py
       wsgi module: project/wsgi.py
  runserver module: runserver.py

Add extensions:

$ flaskinit project -e sqlalchemy

         flaskinit

   project package: project/__init__.py
     views package: project/views/__init__.py
         blueprint: project/views/root.py
         extension: sqlalchemy
      requirements: requirements.txt
 extensions module: project/extensions.py
     config module: project/config.py
        app module: project/app.py
       wsgi module: project/wsgi.py
  runserver module: runserver.py

Available extensions:

  • sqlalchemy - Flask-SQLAlchemy
  • Fork and add more!

Requirements file and server script are included so you can get started quick:

$ pip install -r requirements.txt
$ python runserver.py

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
flaskinit-0.0.1.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page