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.

Source Distribution

dbstore-0.3.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

dbstore-0.3-py2.4.egg (13.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page