Clean, typed access to the Agora API with both sync and async clients.
- Sync and async clients
- Clear error hierarchy with HTTP status mapping
- Minimal dependencies
python -m pip install agora-sdkfrom agora import AgoraClient
client = AgoraClient(base_url="http://localhost:8000", token="your-api-key")
print(client.market.health())import asyncio
from agora import AsyncAgoraClient
async def main() -> None:
async with AsyncAgoraClient(
base_url="http://localhost:8000",
token="your-api-key",
) as client:
print(await client.market.health())
asyncio.run(main())You can also use environment variables:
AGORA_API_KEYAGORA_BASE_URLAGORA_ENV(dev,development,local)
Run the same checks as CI:
bash scripts/ci_local.shRun CI in a container:
bash scripts/ci_docker.shSee examples/ for end-to-end usage patterns.