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.
A decorator for supplying WSGI apps with MySQLdb backed sessions is
provided.
@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));
compliant database package in conjunction with flup.middleware.session.
A decorator for supplying WSGI apps with MySQLdb backed sessions is
provided.
@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
Release history Release notifications | RSS feed
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.0.1.tar.gz
(13.7 kB
view hashes)
Built Distribution
dbstore-0.0.1-py2.4.egg
(9.9 kB
view hashes)