Skip to main content

A Session and Caching library with WSGI Middleware

Project description

About

Beaker is a web session and general caching library that includes WSGI middleware for use in web applications.

As a general caching library, Beaker can handle storing for various times any Python object that can be pickled with optional back-ends on a fine-grained basis.

Beaker was built largely on the code from MyghtyUtils, then refactored and extended with database support.

Beaker includes Cache and Session WSGI middleware to ease integration with WSGI capable frameworks, and is automatically used by Pylons and TurboGears.

Features

  • Fast, robust performance

  • Multiple reader/single writer lock system to avoid duplicate simultaneous cache creation

  • Cache back-ends include dbm, file, memory, memcached, Redis, MongoDB, and database (Using SQLAlchemy for multiple-db vendor support)

  • Signed cookies to prevent session hijacking/spoofing

  • Cookie-only sessions to remove the need for a db or file backend (ideal for clustered systems)

  • Extensible Container object to support new back-ends

  • Caches can be divided into namespaces (to represent templates, objects, etc.) then keyed for different copies

  • Create functions for automatic call-backs to create new cache copies after expiration

  • Fine-grained toggling of back-ends, keys, and expiration per Cache object

Documentation

Documentation can be found on the Official Beaker Docs site.

Source

The latest developer version is available in a GitHub repository.

Contributing

Bugs can be filed on GitHub, should be accompanied by a test case to retain current code coverage, and should be in a pull request when ready to be accepted into the beaker code-base.

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

beaker-1.14.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beaker-1.14.0-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file beaker-1.14.0.tar.gz.

File metadata

  • Download URL: beaker-1.14.0.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for beaker-1.14.0.tar.gz
Algorithm Hash digest
SHA256 86eb92c27a262ce53658db48f00234c8941420308487bae61cd43d39bd97800c
MD5 5ef8e6976a3e682ab0ac8da5bbcb0bcb
BLAKE2b-256 3296168d2840991a5802129629ea739cdfb7a519704f46525e945ce5c012c855

See more details on using hashes here.

File details

Details for the file beaker-1.14.0-py3-none-any.whl.

File metadata

  • Download URL: beaker-1.14.0-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for beaker-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6e62f10535348d3ad78431a04bf5830271dc1aab5de505295010898fe77b76b
MD5 1899083a0b0d7f81496e135cb224a7fc
BLAKE2b-256 1946a4a52b40adda4ebacb2994d10f53d6f95932dbcdbc1b09125d10de29ad5d

See more details on using hashes here.

Supported by

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