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.1.tar.gz (39.1 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.1-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beaker-1.14.1.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for beaker-1.14.1.tar.gz
Algorithm Hash digest
SHA256 886f52a51810703fdbc0a3e54fca40886288ff530b2070582edce72bf1945447
MD5 ef641d2e1296ee5f97a409307359a4c9
BLAKE2b-256 836b3cd3dcf40417e3be31a3a2257957144b0c058ffaf9ca32d2c83c85567cb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beaker-1.14.1-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for beaker-1.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b435a4f5ac67d0367e02351ef7ce8df89e74b6450f1f4c3fb981c6d8c4071213
MD5 56ec851a515e033ad77eea8a7d4d92bf
BLAKE2b-256 1e329ec40a82a4831ec8c280756e3312b3bbd95754a74a69574a240274318f35

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