lockfile

Platform-independent file locking module
Download

lockfile Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Skip Montanaro
  • Publisher web site:

lockfile Tags


lockfile Description

Platform-independent file locking module lockfile is a Python module that exports a FileLock class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf 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.This version refactors the code even further to allow testing with Python 2.4. Requirements: · Python


lockfile Related Software