README 589 B

123456789101112
  1. The lockfile module exports a FileLock class which provides a simple API for
  2. locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf
  3. and flock functions, and the deprecated posixfile module, the API is
  4. identical across both Unix (including Linux and Mac) and Windows platforms.
  5. The lock mechanism relies on the atomic nature of the link (on Unix) and
  6. mkdir (on Windows) system calls. An implementation based on SQLite is also
  7. provided, more as a demonstration of the possibilities it provides than as
  8. production-quality code.
  9. To install:
  10. python setup.py install