No project description provided
Project description
What is this
This library is like an asyncio.Lock()
, but this library's Lock
can be activated with various keys, and the locking is distinct for each key
Installation
pip install key_locker
Usage
from key_locker import Storage, Lock
storage = Storage()
lock = Lock(storage, "key")
await lock.acquire()
await lock.release()
async with lock:
pass
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 async_key_locker-0.1.0.tar.gz
.
File metadata
- Download URL: async_key_locker-0.1.0.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9044ddda42d3690e2b68958466908f69998bdf6cef6d9c3bd4135c159f296f90 |
|
MD5 | 9939d5ce12000a9266addf9c60d06b88 |
|
BLAKE2b-256 | 71f354efa675904549e6e90b641b40ebd3aa62cf94233711ab67a074cbef05de |
File details
Details for the file async_key_locker-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: async_key_locker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724c9ab08e576e9df8fe107309b15594f97592ac0c1aa76119f2b63e2719be02 |
|
MD5 | e5cd36877c954b43a6511ae5485cc80a |
|
BLAKE2b-256 | 8a3f5c795472224a9465e62994361008d48cb452c77ad4f49bb319a918e67840 |