Python SDK
Integrate Alephant into your Python applications
The official Alephant Python SDK provides access to the Alephant SaaS API from Python applications. It supports both synchronous and asynchronous usage and is fully type-hinted.
Installation
Install the SDK via pip:
Initialization
You can initialize either a synchronous or asynchronous client depending on your application architecture.
Synchronous Client
Asynchronous Client
For modern async frameworks like FastAPI or Starlette:
Example Usage
Smoke test
Use the health endpoint to verify that the SDK can reach your configured SaaS API host.
Listing Workspaces
Fetching Agent Analytics
Base URL
The SaaS SDK requires an explicit base_url. Use the dev, production, or private deployment host for your environment.