Skip to content

thomelane/s3-locks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 Locks

A library for distributed locking using Amazon S3. Uses S3 Conditional Writes.

Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages