Shared and exclusive file locking using flock(2)
Project description
This library provides a safe wrapper around flock(2). It avoids problems when using locks in multi-threaded applications, while still exposing exclusive and shared locks.
It also contains a caching utility, fslock.cache.cache_get_or_set(), which can be use to safely cache files that are expensive to produce on disk.
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
fslock-2.1.tar.gz
(5.4 kB
view details)
Built Distribution
fslock-2.1-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file fslock-2.1.tar.gz
.
File metadata
- Download URL: fslock-2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434d224cfbd36d27daed3fd6f21fb02fc24544689ae4afab51999f77d7d88422 |
|
MD5 | 9ec3787d5e440a11813e1a24c194ba76 |
|
BLAKE2b-256 | e288ed5cff711e45893282010ef0f7babd1321ab3f1b75be8e21bbab0d2ec4c7 |
File details
Details for the file fslock-2.1-py3-none-any.whl
.
File metadata
- Download URL: fslock-2.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7d8b60cd36bcae991f7dac86d5eb02e793b3c6d73d6b4f1e6ab42663a25ebff |
|
MD5 | f63f6914cf21c56ce94d2244232d385f |
|
BLAKE2b-256 | dd0535aaff40ea75fa58965cba0e6eac0a304cb4af5d3345a354b9633bcb7751 |