Skip to main content

ZTFY interfaces and utilities for locks handling

Project description


ZTFY.lock is a small package which can be used to get locks on persistent objects in several contexts.

These contexts include:

  • simple ‘threading’ locking, in a single-process environment
  • file locking (using ‘zc.lockfile’ package), in a multi-processes environment where all processes are handled on a single host
  • memcached locking (using ‘lovely.memcached’ package), in a multi-process environment where processes are handled on several hosts.

Locking utility

Locking is handled by a utility implementing ILockingUtility interface and registered for that interface. Locking policy have to be chosen on that utility to define the locking helper which will be used.

According to the selected policy, additional parameters will have to be defined to set the file locks path or the memcached client connection.


Thierry Florac <>, Author



  • added configuration directives to remove static dependencies with package


  • use last base classes


  • package created using templer [Thierry Florac]

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ztfy.lock-0.1.2-py2.7.egg (29.3 kB) Copy SHA256 hash SHA256 Egg 2.7 May 10, 2014
ztfy.lock-0.1.2.tar.gz (11.3 kB) Copy SHA256 hash SHA256 Source None May 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page