Requirements
The Dedalus Python SDK requires Python 3.9 or higher. The SDK is compatible with:- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
- Python 3.14
Install with pip
The simplest way to install the Dedalus SDK is using pip:Install with uv
For faster installation and better dependency resolution, you can use uv:Install with Poetry
If you’re using Poetry for dependency management:Install with optional dependencies
The Dedalus SDK offers optional dependencies for enhanced functionality:- aiohttp
- auth
For improved concurrency performance with async operations:This enables
aiohttp as an alternative HTTP backend for the async client, which can provide better performance for highly concurrent workloads.Verify installation
After installation, verify that the SDK is installed correctly:0.3.0).
Set up authentication
Get your API key
Obtain your API key from the Dedalus Labs dashboard.
Set up environment variables
We recommend using python-dotenv to manage your API key:Create a
.env file in your project root:.env
The
api_key parameter defaults to the DEDALUS_API_KEY environment variable, so you can omit it if the environment variable is set:Platform support
The Dedalus SDK is compatible with:- Operating Systems: Linux, macOS, Windows
- Architectures: x86_64, ARM64
- Environments: Standard Python, virtual environments, Docker containers
Upgrade to latest version
To upgrade to the latest version of the SDK:Dependency overview
The SDK has the following core dependencies:httpx>=0.23.0, <1- HTTP client librarypydantic>=1.9.0, <3- Data validation and settings managementtyping-extensions>=4.10, <5- Backported type hintsanyio>=3.5.0, <5- Async I/O supportdistro>=1.7.0, <2- OS platform informationsniffio- Async library detectionjiter>=0.10.0, <1- Fast JSON parsing
Next steps
Now that you’ve installed the SDK, you’re ready to make your first API call.Quickstart
Follow the quickstart guide to make your first API call