Skip to main content

Add your description here

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3_locks-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

s3_locks-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file s3_locks-0.1.0.tar.gz.

File metadata

  • Download URL: s3_locks-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for s3_locks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f8a9c700db11568a8a07a992b41c7c94594f681d4fa44ac48935e49191f7ba6
MD5 950f369dbe79ed357ab9b3f020fec670
BLAKE2b-256 7601133564e9c586851ed3f4f31a29ae1ccfa53d83136fb4097c8491163af5d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for s3_locks-0.1.0.tar.gz:

Publisher: publish.yml on thomelane/s3-locks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file s3_locks-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: s3_locks-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for s3_locks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f422532c6b4ae729fa7c61a3c414e8f1a801ee878459f801093dd13f262bfeb2
MD5 e622a07286f003647d5cdd0b81275e1c
BLAKE2b-256 9bba67c0c4fe45ff2ddf497dc8ee87f579c6d91ff406bce6916825a6720b3e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for s3_locks-0.1.0-py3-none-any.whl:

Publisher: publish.yml on thomelane/s3-locks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page