Skip to main content

Database storage for flup session middleware.

Project description

This distribution provides database backed storage using any PEP 249
compliant database package in conjunction with flup.middleware.session.
Storage and decorators for supplying WSGI apps with MySQLdb or psycopg2
backed sessions are provided. Others backends are easy to hook up.

@mysql_sessionizer(user='foo', passwd='bar', db='baz', host='localhost')
def some_wsgi_app(environ, start_response):
...

You will need a database with a sessions table:

CREATE TABLE sessions (
id VARCHAR(32) NOT NULL,
touched FLOAT,
pickle LONGTEXT,
primary key (id));

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dbstore, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size dbstore-0.3-py2.4.egg (13.9 kB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size dbstore-0.3.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page