Skip to content
thomelanePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages