BeakerCleanup

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

BeakerCleanup Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Linas Juskevicius
  • Publisher web site:
  • http://www.idiles.com

BeakerCleanup Tags


BeakerCleanup Description

A beaker plugin that implements a function to be called from the command line via PasteCall BeakerCleanup 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 BeakerCleanuppip: < env >/bin/pip install BeakerCleanupGeneral 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 = sessionsUsage examples:If you are mostly using defaults your call could be similar to this:paster call beaker.scripts:cleanup my/config.ini 5hIf you are using a virtual environment you'll call it like this< env >/bin/paster call beaker.scripts:cleanup < env >/prod.ini 3d Requirements: · Python


BeakerCleanup Related Software