Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Build Status Stable Version Coverage Python License

thlock

Overview

TangledHub library for etcd_lock with a focus on asynchronous functions

Licencing

thlock is licensed under the BSD license. Check the LICENSE for details


Installation

pip install thlock

Testing

docker-compose build thlock-test ; docker-compose run --rm thlock-test

Building

docker-compose build thlock-build ; docker-compose run --rm thlock-build

Publish

docker-compose build thcrypto-lock ; docker-compose run --rm -e PYPI_USERNAME=__token__ -e PYPI_PASSWORD=__SECRET__ thlock-publish

Usage

setup

Create instance of EtcdLock

HOST = 'etcd-test'
PORT = 2379

# create instance of EtcdLock
lock = EtcdLock(host=HOST, port=PORT, name='lock-0')

Acquire lock

HOST = 'etcd-test'
PORT = 2379

# create instance of EtcdLock
lock = EtcdLock(host=HOST, port=PORT, name='lock-0')

# acquire lock
await lock.acquire()

Metadata

Release files for thlock 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thlock 0.9.6
File Size Uploaded
thlock-0.9.6.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thlock 0.9.6
File Interpreter ABI Platform
thlock-0.9.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / thlock-0.9.6.tar.gz

Download URL thlock-0.9.6.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8f7c3196d1f692d8f08b35a609fd2cda27b1235a24949feb37dd0ef6fa59f52
BLAKE2b-256 checksum
How to use checksums
97e398a96fe6e7d1868e3cb7b333218114e7148b60cc84274551321c85b10f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.1 Linux/5.4.109+

Release files / thlock-0.9.6-py3-none-any.whl

Download URL thlock-0.9.6-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea8db36e7f7ac67befd4d17f13fab42852f6cf557aaa2c820f3c4d507bf675c3
BLAKE2b-256 checksum
How to use checksums
10b7d8ddaff386f2937b9f480d72abd3f29b61c6d6d3e31ec261c749f2ad81ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.1 Linux/5.4.109+
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page