Skip to main content

Beaker package integration for ZTFY

Project description

Introduction

ZTFY.beaker is a small wrapper around Beaker (http://pypi.python.org/pypi/Beaker) session and caching library.

It allows you to define a Beaker session throught a ZCML configuration directive to include it in a WSGI application based on ZTFY packages.

A BeakerSessionUtility can then be created and registered to act as a session data container.

Beaker session configurations

All Beaker session options can be defined throught ZCML directives. See metadirectives.py to get the complete list of configuration options.

For example, to define a Memcached session configuration:

<configure
        xmlns:beaker="http://namespaces.ztfy.org/beaker">

        <beaker:memcachedSession
                url="127.0.0.1:11211"
                cookie_expires="False"
                lock_dir="/var/lock/sessions" />

</configure>

Directives are available for memory, DBM, file, Memcached and SQLAlchemy sessions storages.

HISTORY

0.1.0

  • first release

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

ztfy.beaker-0.1.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

ztfy.beaker-0.1.0-py2.7.egg (32.3 kB view details)

Uploaded Source

File details

Details for the file ztfy.beaker-0.1.0.tar.gz.

File metadata

  • Download URL: ztfy.beaker-0.1.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ztfy.beaker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60f183e1df9a3b29e649130402adb575600786b91de2e3ffa7f5a3945a84df3d
MD5 48a483e95b68f6aae4aa5d2821b9927c
BLAKE2b-256 98ab504cf37a72cdb581fa23c33813cd4ddaaf0e0554d91d65691ec693f9b825

See more details on using hashes here.

File details

Details for the file ztfy.beaker-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for ztfy.beaker-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 85adca7659d43a88c8b727a41e523369c6615995f1b851c768a20776103ba78a
MD5 f3c231dc36a4f10f27b302bd59d37142
BLAKE2b-256 a36d28321060a4470b39a65f8a28fe1d1ba289402b35d5a70378a3b8481e1a72

See more details on using hashes here.

Supported by

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