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

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
bottle-beaker-0.1.3.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Jul 20, 2016

Supported by

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