Skip to main content

Native Rust-powered coordination kernel for multi-agent systems

Project description

klock

Python SDK for Klock OSS v1.

The package now exposes two entrypoints:

  • KlockClient for embedded local coordination
  • KlockHttpClient for talking to klock-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)

Uploaded Source

Built Distribution

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

klock-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

Hashes for klock-0.1.2.tar.gz
Algorithm Hash digest
SHA256 de89d9b994d10c8395cf1cbea0cdb210a07389789cc3cf4b52afdd709cebdcf6
MD5 7f31bf9536a0ba693f8f921522d7b4bf
BLAKE2b-256 b0dc543dadc43ee5beaa7472b5ca2cf0b27a2dac4b4a38e628a9eca06d8e685a

See more details on using hashes here.

File details

Details for the file klock-0.1.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klock-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 208846486d68eed126b81fc08506b66d4d87b81e33204624a6906a74f2c38d36
MD5 039327aefed2ea4c0741025f0a7e7969
BLAKE2b-256 7da9fdcb80f6479aa919756840e3e736b1941331589afae49ce002ce0f25a742

See more details on using hashes here.

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