Native Rust-powered coordination kernel for multi-agent systems
Project description
klock
Python SDK for Klock OSS v1.
The package now exposes two entrypoints:
KlockClientfor embedded local coordinationKlockHttpClientfor talking toklock-cli serve
Install
pip install klock
Embedded client
from klock import KlockClient
klock = KlockClient()
klock.register_agent("agent-a", 100)
result = klock.acquire_lease("agent-a", "session-a", "FILE", "/src/auth.js", "MUTATES", 5000)
HTTP client
from klock import KlockHttpClient
klock = KlockHttpClient("http://localhost:3100")
klock.register_agent("agent-a", 100)
result = klock.acquire_lease("agent-a", "session-a", "FILE", "/src/auth.js", "MUTATES", 5000)
Use KlockHttpClient for the OSS v1 local repo/workspace coordination workflow.
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
klock-0.1.2.tar.gz
(34.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klock-0.1.2.tar.gz.
File metadata
- Download URL: klock-0.1.2.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de89d9b994d10c8395cf1cbea0cdb210a07389789cc3cf4b52afdd709cebdcf6
|
|
| MD5 |
7f31bf9536a0ba693f8f921522d7b4bf
|
|
| BLAKE2b-256 |
b0dc543dadc43ee5beaa7472b5ca2cf0b27a2dac4b4a38e628a9eca06d8e685a
|
File details
Details for the file klock-0.1.2-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: klock-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208846486d68eed126b81fc08506b66d4d87b81e33204624a6906a74f2c38d36
|
|
| MD5 |
039327aefed2ea4c0741025f0a7e7969
|
|
| BLAKE2b-256 |
7da9fdcb80f6479aa919756840e3e736b1941331589afae49ce002ce0f25a742
|