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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for kit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 97016d3632bf6b076abcb335d6e5371ed331a172b56c07c1f28c3ac8688f48ff
MD5 94b71989b38bfa19d08a3c6a660ce41f
BLAKE2b-256 0410d7aa27119ebda1423f8046694bea0208acf3b90259f0a88d275d47643d56

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