Metadata-Version: 2.5
Name: r2flow-cloud-client
Version: 0.1.0
Summary: Thin Python client for the r2flow-cloud orchestrator REST API
Author: 2kurosss
License-Expression: MIT
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: mypy>=1.18; extra == 'dev'
Requires-Dist: pytest-asyncio>=1.0; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.12; extra == 'dev'
Description-Content-Type: text/markdown

# r2flow-cloud-client

Thin Python client for the [r2flow-cloud](../README.md) orchestrator REST API.

```bash
pip install r2flow-cloud-client
```

```python
from r2flow_cloud_client import R2FlowCloud

sc = R2FlowCloud("http://localhost:8000", token="r2f_...")

process = sc.create_process("hello", files={"main.py": 'print("hi")'})
agent = sc.list_agents()[0]
sc.deploy_process(process["id"], agent["id"])
run = sc.run_process(process["id"], agent["id"])
result = sc.wait_run(process["id"], run["id"], timeout_s=120)
print(result["status"])

# REFramework-style queues
sc.create_queue("invoices")
sc.add_queue_items("invoices", [{"file": "a.pdf"}, {"file": "b.pdf"}])
item = sc.claim_queue_item(agent["id"], "invoices", run["id"])
sc.complete_queue_item(agent["id"], item["id"], run["id"], status="success")
```

Any HTTP client works too — the API is plain REST with Swagger at `/docs`.
