Welcome to gcs_lock_thing
Basic mutex lock implementation with Google Cloud Storage with ttl and exponential backoff
- Free software: MIT license
- Documentation: https://connor-ps.github.io/gcs_lock_thing
Features
- Basic mutex lock in GCP
Credits
This package was created with Cookiecutter and the giswqs/pypackage project template.
Installation
Stable release
To install gcs-lock-thing, run this command in your terminal:
pip install gcs_lock_thing
This is the preferred method to install gcs-lock-thing, as it will always install the most recent stable release.
If you don't have pip installed, this Python installation guide can guide you through the process.
Usage
To use gcs-lock-thing in a project:
import gcs_lock_thing.lock as gcs
public_bucket_path = "data-trf-test-mutex-lock"
client = gcs.Client(bucket=public_bucket_path, lock_file_path="test-lock.txt", ttl=2)
# get lock
status = client.lock()
# free lock
client.free_lock()
Metadata
Release files for gcs-lock-thing 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gcs_lock_thing-0.0.6.tar.gz | 4.8 kB | Without provenance | Details for gcs_lock_thing-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gcs_lock_thing-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for gcs_lock_thing-0.0.6-py2.py3-none-any.whl |
Total release size: 9.7 kB
Release files / gcs_lock_thing-0.0.6.tar.gz
| Download URL | gcs_lock_thing-0.0.6.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6061352ce12e2a4de0fd7de7eb4d9a870f04b02601038ffae3aedfde1e4e14f
|
|
BLAKE2b-256 checksum How to use checksums |
bf2bbab07e6b56ee9b598e6bdd6ff5df278c318a4d91a510e9363a4c968d0718
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / gcs_lock_thing-0.0.6-py2.py3-none-any.whl
| Download URL | gcs_lock_thing-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d0b12080c4f86c28257c414ba9376a67d23b7702a4e685811f1d4ef6b497293c
|
|
BLAKE2b-256 checksum How to use checksums |
72e96e8cb790a6f30663ac669efbe0bfa84043dfa50825bbd2d810f3b75d0b99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for gcs-lock-thing 0.0.6
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.