Skip to main content

Flask, Celery, SQLAlchemy toolkit

Project description

A configurable, lightweight framework that integrates Flask, SQLAlchemy, and Celery.

  • Configure all your applications and sessions from one file (cf Sample configuration file for an example).

  • Run your project from the command line: Start the Werkzeug webserver, start Celery workers, start a shell in your project’s context (using IPython if available), and start the Flower monitor tool.

  • No more complicated and sometimes circular, import schemes: kit.Flask and kit.Celery always return the correct (and configured) application corresponding to the module.

  • Kit makes sure database connections are correctly handled (e.g. removed after each request and task) under the hood. You can configure this behavior via the kit.teardown_handler decorator.

Check out the examples/ folder for a few sample applications or read the full documentation on GitHub pages.

Kit is under development.

Installation

$ pip install kit

Sample configuration file

flasks:
  - modules: ['app', 'app.views']
    config:
      debug: yes
      testing: yes
  - modules: ['api']
celeries:
  - modules: ['tasks']
    config:
      broker_url: 'redis://'
sessions:
  db:
    url: 'mysql://...'
    engine:
      pool_recycle: 3600

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

kit-0.2.3.tar.gz (22.6 kB view details)

Uploaded Source

File details

Details for the file kit-0.2.3.tar.gz.

File metadata

  • Download URL: kit-0.2.3.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kit-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b73e24c69d4e71b84bcd7d4f32f22beec498074110c7e506a675d989537a57b0
MD5 80c80d381b8a1379667720cb88132eb9
BLAKE2b-256 95eef387c9248cdb5600cf9329740741d53b4a1002b4c98fba9af2ecf7734b84

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