Skip to main content

A beaker plugin that implements a function to be called from the command line via PasteCall.

Project description

This is a beaker plugin which exposes a cleanup function. The cleanup function cleans the old session data created by beaker database backend.

It uses a PasterCall plugin to expose the cleanup to the console.

Mercurial repository: bitbucket.org.

Installation

easy_install:

$ <env>/bin/easy_install BeakerCleanup

pip:

$ <env/bin/pip install BeakerCleanup

General usage

$ <environment>/bin/paster call beaker.scripts:cleanup path/to/config.cfg 4h bkr.session

beaker.scripts:cleanup is an entry point to the cleanup function

path/to/config.cfg is a path to the WSGI config file containing beaker session parameters (usually .cfg or .ini)

4h tells to clean up sessions which are older than (has accessed before) 4 hours. You can give

  • 1m, 18m, 76m, etc - minutes

  • 1h, 4h, 25h, etc - hours

  • 1d, 2d, 32d, etc - days

bkr.session (optional, default: 'beaker.session') is a prefix which is needed to find the beaker session parameters in the config file. It allows you to choose which backend to clean up when you have more than one. E.g.:

bkr.session.url = sqlite:///my.db
bkr.session.table_name = sessions

Usage examples

If you are mostly using defaults your call could be similar to this:

$ paster call beaker.scripts:cleanup my/config.ini 5h

If you are using a virtual environment <env> you’ll call it like this

$ <env>/bin/paster call beaker.scripts:cleanup <env>/prod.ini 3d

Project details


Download files

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

Source Distributions

BeakerCleanup-0.1.1.zip (6.7 kB view details)

Uploaded Source

BeakerCleanup-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distributions

BeakerCleanup-0.1.1-py2.6.egg (4.7 kB view details)

Uploaded Source

BeakerCleanup-0.1.1-py2.5.egg (7.7 kB view details)

Uploaded Source

File details

Details for the file BeakerCleanup-0.1.1.zip.

File metadata

  • Download URL: BeakerCleanup-0.1.1.zip
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for BeakerCleanup-0.1.1.zip
Algorithm Hash digest
SHA256 e0294646486754e70101e8a5580a83f77655b0d67f7d2945bfe97658989bf7ee
MD5 eaf4989810d50b8f7fe795279bb0bed4
BLAKE2b-256 07825b1fcde89b15d1f7797c10c1130a841eb5ecbfca7e291d901f0f0478f335

See more details on using hashes here.

File details

Details for the file BeakerCleanup-0.1.1.tar.gz.

File metadata

File hashes

Hashes for BeakerCleanup-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68bf163855f181cd3bdf8bd0f2fdb3d83a56c949e729f687a6a5dfd5be0e5f17
MD5 9ecff4047cd9934a411a6c482501b110
BLAKE2b-256 e224ac26f081ac5cdf4bd79e931eead6f03c4aab7fe4fd4581528a94a7066da3

See more details on using hashes here.

File details

Details for the file BeakerCleanup-0.1.1-py2.6.egg.

File metadata

File hashes

Hashes for BeakerCleanup-0.1.1-py2.6.egg
Algorithm Hash digest
SHA256 8340a5b3712a34189041ac575767b373380b9bd5c1ea3bfcb4babe54119c600d
MD5 e56fcbf9ed619005aaef74e51704f394
BLAKE2b-256 cc06f3b81fd18c4d852f07fb2fa26766cca32004804d1037684666c4fad8cc96

See more details on using hashes here.

File details

Details for the file BeakerCleanup-0.1.1-py2.5.egg.

File metadata

File hashes

Hashes for BeakerCleanup-0.1.1-py2.5.egg
Algorithm Hash digest
SHA256 56b08d11894a30d95b76cb703d1b4f90cfef7054f763fe522b0b10eb5a088c7a
MD5 84b6fb286d514818042d3e01a52d1f98
BLAKE2b-256 8bad7bd0d6a1eb338dc0d2fc1ed7a59ea3900c6c3265b5630d8018fa12db9221

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