Python SDK

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

Install

$pip install openantares-alpha
1import os
2
3from alpha import Alpha
4
5alpha = Alpha(token=os.environ["ALPHA_API_KEY"])
6
7vaults = alpha.vaults.list_vaults()
8result = alpha.knowledge.search_knowledge(
9 vault="Northstar Fulfillment",
10 query="pilot blockers",
11)
12
13print(vaults.data)
14print(result.data)

Async client

1import asyncio
2import os
3
4from alpha import AsyncAlpha
5
6alpha = AsyncAlpha(token=os.environ["ALPHA_API_KEY"])
7
8async def main() -> None:
9 result = await alpha.knowledge.get_brief(
10 vault="Northstar Fulfillment",
11 )
12 print(result.data)
13
14asyncio.run(main())

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

The package repository is openantares/alpha-python. Install the openantares-alpha distribution, then import the SDK from alpha.