Python SDK
Integrate Alephant into your Python applications
The official Alephant Python SDK provides convenient access to the Alephant SaaS API from any Python 3.8+ application. It supports both synchronous and asynchronous usage and is fully type-hinted for great IDE support.
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
Listing Workspaces
Fetching Agent Analytics
Environments
If you are using an Enterprise private deployment, you can override the base URL by passing a string to the environment parameter instead of the default enum.