Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

ZTFY interfaces and utilities for locks handling

Project Description

Introduction

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.

Contributors

Thierry Florac <tflorac@ulthar.net>, Author

Changelog

0.1.2

  • added configuration directives to remove static dependencies with ztfy.skin package

0.1.1

  • use last ZTFY.skin base classes

0.1.0

  • package created using templer [Thierry Florac]
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ztfy.lock-0.1.2-py2.7.egg (29.3 kB) Copy SHA256 Checksum SHA256 2.7 Egg May 10, 2014
ztfy.lock-0.1.2.tar.gz (11.3 kB) Copy SHA256 Checksum SHA256 Source May 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting