Skip to main content
https://img.shields.io/pypi/v/yg.lockfile.svg https://img.shields.io/pypi/pyversions/yg.lockfile.svg https://img.shields.io/pypi/dm/yg.lockfile.svg https://img.shields.io/travis/yougov/yg.lockfile/master.svg

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

License

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

Usage

Example usage:

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

Metadata

Release files for yg.lockfile 2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yg.lockfile 2.3
File Size Uploaded
yg.lockfile-2.3.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yg.lockfile 2.3
File Interpreter ABI Platform
yg.lockfile-2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.3 kB

Release files / yg.lockfile-2.3.tar.gz

Download URL yg.lockfile-2.3.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b8c8a482958daaa47682bc3004d237c2888e0086e55c2b47b5d8810d100db732
BLAKE2b-256 checksum
How to use checksums
60f33d5a9426ca76d18fa12a9d5be26e6bffcb43be6fccd7466076ea888e271f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / yg.lockfile-2.3-py2.py3-none-any.whl

Download URL yg.lockfile-2.3-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b3fe554a90a7ee97393bc0d2f27068894c401c91b7d92b76c04348fd13b86570
BLAKE2b-256 checksum
How to use checksums
398619446e44425d4986e156af8990b399afe19df87bcb83b1e3023623143839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.3 This release

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2

2 release files

2.1.1

1 release file

2.1

1 release file

2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page