Skip to main content

Lockfile object with timeouts and context manager

Project description

A FileLock class that implements a context manager with timeouts on top of zc.lockfile, an excellent, cross-platorm implementation of file locking.


License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.


Example usage:

import yg.lockfile
    with yg.lockfile.FileLock('/tmp/lockfile', timeout=900):
except yg.lockfile.FileLockTimeout:

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-2.3.tar.gz (6.5 kB view hashes)

Uploaded source

Built Distribution

yg.lockfile-2.3-py2.py3-none-any.whl (6.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page