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));
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
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.3.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dbstore-0.3-py2.4.egg
(13.9 kB
view details)
File details
Details for the file dbstore-0.3.tar.gz.
File metadata
- Download URL: dbstore-0.3.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8216ed5bed2fa786853b1571db3685bbfd81e47917877a27a76e316cd8bbcb4
|
|
| MD5 |
24046647fb20d74cdafb3647eb6e7887
|
|
| BLAKE2b-256 |
3db0c434317c0c93b72c387611ac288640f99dd5a8bbb338819a9df1c3b5a54c
|
File details
Details for the file dbstore-0.3-py2.4.egg.
File metadata
- Download URL: dbstore-0.3-py2.4.egg
- Upload date:
- Size: 13.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6f2bbfc40a4555f1d0061a11293028e5695faa7b024b61e397306488e6dcb6
|
|
| MD5 |
c112f8c3420e3ee18df4046bbf1ec2b3
|
|
| BLAKE2b-256 |
0524eaccb218a7a3432a1e3ff6e9cc35d10c154251355812849f864c32eebe45
|