Skip to main content

Bottle plugin beaker, WSGI middleware for sessions and caching

Project description

Bottle plugin to session and caching library with WSGI Middleware


import bottle
from bottle.ext import beaker

session_opts = {
    'session.type': 'file',
    'session.cookie_expires': 300,
    'session.data_dir': './data',
    '': True

app = beaker.middleware.SessionMiddleware(, session_opts)

def test():
    s = bottle.request.environ.get('beaker.session')
    s['test'] = s.get('test',0) + 1
    return 'Test counter: %d' % s['test']

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 bottle-beaker, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size bottle-beaker-0.1.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page