Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnoukhov/readwrite_filelock
Wrapper on py-filelock to allow for multiple read accesses but maintain a write lock
https://github.com/mnoukhov/readwrite_filelock
Last synced: 25 days ago
JSON representation
Wrapper on py-filelock to allow for multiple read accesses but maintain a write lock
- Host: GitHub
- URL: https://github.com/mnoukhov/readwrite_filelock
- Owner: mnoukhov
- License: mit
- Created: 2019-08-29T20:02:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T20:11:17.000Z (over 5 years ago)
- Last Synced: 2024-10-28T00:21:25.180Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Read/Write FileLock
Wrapper on [filelock](https://github.com/benediktschmitt/py-filelock) to allow for multiple read accesses but maintain a write lock. Currently implements a fair lock with neither write nor read priority.Inspired by the very nice [readerwriterlock](https://github.com/elarivie/pyReaderWriterLock)
## Why
This is useful when you want to use locks in a distributed setting without being ableto use `notify` or have a centralized process that maintain the number of active readers
## How to use
The interface is exactly like `FileLock`