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.2.tar.gz (22.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for kit-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6164651c661b800ac15cc09a14a08d57186574ddbcea0707f1354ccbf9b44c02
MD5 533e88235a7586f7df75dd33f2236e32
BLAKE2b-256 ecf9def0776124510bda96cedc868a8cd93b5d208932e4d2c3793aeb2f6acaf0

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