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
INSTALL>
pypm install lockfile

How to install lockfile

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install lockfile
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
Windows (64-bit)
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
Mac OS X (10.5+)
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
Linux (32-bit)
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
Linux (64-bit)
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
0.9.1 Available View build log
0.8 Available View build log
 
License
MIT License
Imports
Lastest release
version 0.9.1 on Jan 5th, 2011

The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code.

Note: In version 0.9 the API changed in two significant ways:

  • It changed from a module defining several classes to a package containing several modules, each defining a single class.
  • Where classes had been named SomethingFileLock before the last two words have been reversed, so that class is now SomethingLockFile.

The previous module-level definitions of LinkFileLock, MkdirFileLock and SQLiteFileLock will be retained until the 1.0 release.

Available on GitHub from:

git://github.com/smontanaro/pylockfile.git

To install:

python setup.py install

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.