Skip to main content

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

Metadata

Release files for async-key-locker 0.1.0

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

Source distribution (sdist)

Source distribution for async-key-locker 0.1.0
File Size Uploaded Provenance Actions
async_key_locker-0.1.0.tar.gz 1.3 kB Without provenance Details for async_key_locker-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for async-key-locker 0.1.0
File Interpreter ABI Platform Actions
async_key_locker-0.1.0-py3-none-any.whl Python 3 none any Details for async_key_locker-0.1.0-py3-none-any.whl

Total release size: 3.2 kB

Release files / async_key_locker-0.1.0.tar.gz

Download URL async_key_locker-0.1.0.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9044ddda42d3690e2b68958466908f69998bdf6cef6d9c3bd4135c159f296f90
BLAKE2b-256 checksum
How to use checksums
71f354efa675904549e6e90b641b40ebd3aa62cf94233711ab67a074cbef05de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-36-generic

Release files / async_key_locker-0.1.0-py3-none-any.whl

Download URL async_key_locker-0.1.0-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
724c9ab08e576e9df8fe107309b15594f97592ac0c1aa76119f2b63e2719be02
BLAKE2b-256 checksum
How to use checksums
8a3f5c795472224a9465e62994361008d48cb452c77ad4f49bb319a918e67840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-36-generic

Security for async-key-locker 0.1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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