Lockfile object with timeouts and context manager
Project description
A LockFile class that implements a context manager with timeouts on top of zc.lockfile, an excellent, cross-platorm implementation of file locking.
Usage
Example usage:
import yg.lockfile try: with yg.lockfile.LockFile('/tmp/lockfile', timeout=900): protected_operation() except yg.lockfile.LockFileTimeout: handle_unable_to_lock()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yg.lockfile-1.1.1.zip
(7.2 kB
view details)
File details
Details for the file yg.lockfile-1.1.1.zip
.
File metadata
- Download URL: yg.lockfile-1.1.1.zip
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bddddd5f70a5fb7495ff8992347d39fde338d4edceb8e2831e63098c18967a |
|
MD5 | 895aa9b3b1337c52f2841b092de2fec7 |
|
BLAKE2b-256 | ec35219f8d8aea24b070cff9b0a9bd1f4e0010896e959ac845f3c0fb8c9d5d16 |