Skip to main content

Padlock

PyPI - Python Version

Padlock is a Python library that provides a simple, asynchronous, and consistent API for distributed locking.

Quick Start

Installation

pip install python-padlock

Basic Usage

import asyncio

from padlock import LockManager, MemoryLockBackend


async def main():
    async with LockManager(MemoryLockBackend()) as manager:
        async with manager.lock('my-lock'):
            print('Lock acquired')
            await asyncio.sleep(5)
        print('Lock released')

You can find more examples in the examples directory.

License

This project is licensed under MIT License.

Support & Feedback

If you encounter any issues or have feedback, please open an issue. We'd love to hear from you!

Made with ❤️ by Emergent Methods

Metadata

Release files for python-padlock 0.1.3

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

Built distribution (wheel)

Table of built distributions (wheels) for python-padlock 0.1.3
File Interpreter ABI Platform Actions
python_padlock-0.1.3-py3-none-any.whl Python 3 none any Details for python_padlock-0.1.3-py3-none-any.whl

Release files / python_padlock-0.1.3-py3-none-any.whl

Download URL python_padlock-0.1.3-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89d7600fb87e03063f89d0b2f5ef819704eea3293e1d7fcc805911528a830073
BLAKE2b-256 checksum
How to use checksums
e2d109aae0bc6675edf955751368011df424614cd3cbeaf02b60ce67aad00c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.4

Security for python-padlock 0.1.3

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.

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