| """ | |
| orgstate_client — minimal Python SDK for the OrgState API. | |
| Stage 62: tight read-only first pass. Customers writing Python scripts | |
| or web dashboards no longer need to hand-roll urllib + auth headers. | |
| Default transport is stdlib urllib (no requests/httpx dependency). | |
| For tests, pass an httpx-compatible client as ``transport``: | |
| from fastapi.testclient import TestClient | |
| from infra.api import create_app | |
| from orgstate_client import Client | |
| client = Client( | |
| base_url="http://test", # ignored by the transport | |
| tenant_id="acme", | |
| api_key=raw_key, | |
| transport=TestClient(create_app(":memory:")), | |
| ) | |
| print(client.health()) | |
| print(client.list_runs(entity_type="warehouse")) | |
| In production: | |
| from orgstate_client import Client | |
| c = Client(base_url="https://orgstate.example.com", | |
| tenant_id="acme", api_key="abc...") | |
| c.health() | |
| """ | |
| from .admin import AdminClient | |
| from .client import Client, ClientError | |
| __all__ = ["AdminClient", "Client", "ClientError"] | |