Metadata-Version: 2.3
Name: s3-locks
Version: 0.1.0
Summary: Add your description here
Keywords: s3,locks,distributed,synchronization
Author: Thom Lane
Author-email: Thom Lane <thom.e.lane@gmail.com>
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: boto3>=1.40.16
Requires-Dist: loguru>=0.7.3
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/thomelane/s3_locks
Project-URL: Issues, https://github.com/thomelane/s3_locks/issues
Project-URL: Repository, https://github.com/thomelane/s3_locks
Description-Content-Type: text/markdown

# S3 Locks

A library for distributed locking using Amazon S3.
Uses [S3 Conditional Writes](https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-s3-functionality-conditional-writes/).

## Usage

```python
from s3_locks import S3Lock

with S3Lock(bucket='my-bucket', key='locks/my-resource', ttl=60) as lock:
    # code is only executed if the lock is acquired
    print("Lock acquired, performing protected operation")
    # lock will be released automatically when exiting the context manager
```
