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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for kit-0.2.4.tar.gz
Algorithm Hash digest
SHA256 58ec56dea005679478952f3bf5846353f4b5d42d5252f732e417b29e794483b0
MD5 896f3460bd58f1a3e54e9c72f3a7de7f
BLAKE2b-256 2190ffba2116f7a79b28620094c4ca7dd5d7e25a735e08601f19d17d2a68d761

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