A python package that provides useful locks.
Project description
Overview
A python package that provides useful locks.
It includes the following.
Locking decorator
Helpful locked decorator (that acquires instance objects lock(s) and acquires on method entry and releases on method exit).
Reader-writer locks
Multiple readers (at the same time).
Single writers (blocking any readers).
Helpful read_locked and write_locked decorators.
Inter-process locks
Single writer using file based locking (these automatically release on process exit, even if __release__ or __exit__ is never called).
Helpful interprocess_locked decorator.
Generic helpers
A try_lock helper context manager that will attempt to acquire a given lock and provide back whether the attempt passed or failed (if it passes, then further code in the context manager will be ran with the lock acquired).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fasteners-0.15.tar.gz
.
File metadata
- Download URL: fasteners-0.15.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a176da6b70df9bb88498e1a18a9e4a8579ed5b9141207762368a1017bf8f5ef |
|
MD5 | 440f8ab461c8fed941355860d8669556 |
|
BLAKE2b-256 | 15d71e8b3270f21dffcaaf5a2889675e8b2fa35f8a43a5817a31d3820e8e9495 |
File details
Details for the file fasteners-0.15-py2.py3-none-any.whl
.
File metadata
- Download URL: fasteners-0.15-py2.py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 007e4d2b2d4a10093f67e932e5166722d2eab83b77724156e92ad013c6226574 |
|
MD5 | e4f599eb5c09b46e9e1b2b8b381c68ab |
|
BLAKE2b-256 | 18bd55eb2d6397b9c0e263af9d091ebdb756b15756029b3cededf6461481bc63 |