Metadata-Version: 2.4
Name: klock
Version: 0.1.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Libraries
Summary: Native Rust-powered coordination kernel for multi-agent systems
Keywords: klock,coordination,agents,concurrency,rust
Home-Page: https://klockcore.com
Author-email: Mouad Nossair <mouad@waythor.com>, Walid Amar <walid@waythor.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: homepage, https://klockcore.com
Project-URL: repository, https://github.com/waythor-lab/klock

# 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

```bash
pip install klock
```

## Embedded client

```python
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

```python
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.

