Skip to main content

Note: This package is deprecated. It is highly preferred that instead of using this code base that instead fasteners or oslo.concurrency is used instead. For any questions or comments or further help needed please email openstack-dev and prefix your email subject with [oslo][pylockfile] (for a faster response).

The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code.

Note: In version 0.9 the API changed in two significant ways:

  • It changed from a module defining several classes to a package containing several modules, each defining a single class.

  • Where classes had been named SomethingFileLock before the last two words have been reversed, so that class is now SomethingLockFile.

The previous module-level definitions of LinkFileLock, MkdirFileLock and SQLiteFileLock will be retained until the 1.0 release.

To install:

python setup.py install

Metadata

Release files for lockfile 0.12.2

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

Source distribution (sdist)

Source distribution for lockfile 0.12.2
File Size Uploaded Provenance
lockfile-0.12.2.tar.gz 20.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 34.4 kB

Release files / lockfile-0.12.2.tar.gz

Download URL lockfile-0.12.2.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799
BLAKE2b-256 checksum
How to use checksums
174772cb04a58a35ec495f96984dddb48232b551aafb95bde614605b754fe6f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / lockfile-0.12.2-py2.py3-none-any.whl

Download URL lockfile-0.12.2-py2.py3-none-any.whl
Size 13.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6c3cb24f344923d30b2785d5ad75182c8ea7ac1b6171b08657258ec7429d50fa
BLAKE2b-256 checksum
How to use checksums
c8229460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lockfile 0.12.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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