Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

ztfy.lock is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links
License
ZPL

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.1
  • use last ZTFY.skin base classes
0.1.0
  • package created using templer [Thierry Florac]

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.