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

License

http://marksteve.mit-license.org

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

flaskinit-0.0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file flaskinit-0.0.1.tar.gz.

File metadata

  • Download URL: flaskinit-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flaskinit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f29f62482d8dbb029c586d5187854af3d0edeb34ba28e7a3ad7024fdbf99f736
MD5 7e7b3cc764c99ee67b624030c783c6ff
BLAKE2b-256 b963e72c183a4bb7c7ea8c8b5e104b7b6ef416cd4495ec90abce5b6a8e5d0756

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