yg.lockfileLockfile object with timeouts and context manager | |
Download |
yg.lockfile Ranking & Summary
Advertisement
- License:
- Other/Proprietary Li...
- Price:
- FREE
- Publisher Name:
- Jason R. Coombs
- Publisher web site:
- http://jaraco.com
yg.lockfile Tags
yg.lockfile Description
yg.lockfile is a LockFile class that implements a context manager with timeouts on top of zc.lockfile, an excellent, cross-platorm implementation of file locking.UsageExample usage:import yg.lockfiletry: with yg.lockfile.LockFile('/tmp/lockfile', timeout=900): protected_operation()except yg.lockfile.LockFileTimeout: handle_unable_to_lock()Product's homepage
yg.lockfile Related Software