Skip to navigation

Python SDK

Use the generated Alpha client with synchronous or asynchronous Python applications.
View as Markdown

Install

pip install openantares-alpha
import os
from alpha import Alpha
alpha = Alpha(token=os.environ["ALPHA_API_KEY"])
vaults = alpha.vaults.list_vaults()
result = alpha.knowledge.search_knowledge(
vault="Northstar Fulfillment",
query="pilot blockers",
)
print(vaults.data)
print(result.data)

Async client

import asyncio
import os
from alpha import AsyncAlpha
alpha = AsyncAlpha(token=os.environ["ALPHA_API_KEY"])
async def main() -> None:
result = await alpha.knowledge.get_brief(
vault="Northstar Fulfillment",
)
print(result.data)
asyncio.run(main())

The client supports configurable timeouts, retries, custom httpx clients, typed errors, and raw response access.

The published distribution is openantares-alpha. Install that distribution, then import the SDK from alpha. Its generated source and release workflow live in openantares/alpha-python.