python-lockfile

file locking library for Python — Python 2 library

Description

The ‘lockfile’ library exports a ‘LockFile’ class which provides a simple API for locking files.

The appropriate implementation for ‘LockFile’ is chosen automatically based on the OS capabilities for an atomic filesystem operation. These implementations are also available for explicit use as ‘LinkLockFile’ and ‘MkdirLockFile’.

Other back ends are possible with the same semantics. Examples included are:
 * ‘SQLiteLockFile’, using records in an SQLite database.
 * ‘PIDLockFile’, using the semantics of a Unix PID file.

Unlike other Python locking libraries (the Windows ‘msvcrt.locking’ function, the Unix ‘fcntl.flock’, ‘fcntl.lockf’, and the deprecated ‘posixfile’ module), the API is identical across both Unix (including GNU/Linux and MacOS) and Windows platforms.

This package installs the Python 2 library.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://pypi.python.org/pypi/lockfile/


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python-lockfile