Typed async Python client for the iceOS Orchestrator API
Project description
iceos-client
Typed async Python client for the iceOS Orchestrator API.
Install
pip install iceos-client
Quickstart
import asyncio
from ice_client import IceClient
async def main():
client = IceClient("http://localhost:8000")
# Quick discovery call (names only) to verify connectivity
meta = await client.list_components()
print("components (names only):", list(meta.keys()))
exec_id = await client.run_bundle(
"chatkit.rag_chat",
inputs={
"query": "Two-sentence summary for Stefano.",
"org_id": "demo_org",
"user_id": "demo_user",
"session_id": "chat_demo"
},
# If bundle is not pre-registered on the server, auto-register from YAML:
blueprint_yaml_path="Plugins/bundles/chatkit/workflows/rag_chat.yaml",
wait_seconds=5,
)
print("execution_id:", exec_id)
asyncio.run(main())
Smoke test (Dockerized)
docker run --rm -t --network host python:3.11.9-slim bash -lc "\
python -m pip install -U pip && \
pip install -q iceos-client && \
python - <<'PY'\
import asyncio
from ice_client import IceClient
async def main():
c = IceClient('http://localhost:8000')
res = await c.list_library(limit=5)
print('OK:', isinstance(res, dict), 'items:', len(res.get('items', [])))
await c.close()
asyncio.run(main())
PY"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iceos_client-0.1.2.tar.gz
(10.6 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 iceos_client-0.1.2.tar.gz.
File metadata
- Download URL: iceos_client-0.1.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b66b8be66e2a9f63e63980b15447932e6aee52ca54a7d6db7938536a26ab47
|
|
| MD5 |
24da2521a06bea4a781db62fb846c3d4
|
|
| BLAKE2b-256 |
c1fbed3c462d45627cf2aaaef7ab6051a52390651e6c3d02f99e771919698a20
|
File details
Details for the file iceos_client-0.1.2-py3-none-any.whl.
File metadata
- Download URL: iceos_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
189b5e29fcb541467277344e15e503e387e6c0db81aa9906faa17512177e106a
|
|
| MD5 |
3706df9bf4f3f3ef77938ee14f856d83
|
|
| BLAKE2b-256 |
46c9a9a9b350f4982bfea6f328df633d87ca3973816e527c1ae9a271b2cf64b8
|