The Python SDK requires Python 3.9+.
Installation
Quick Start
Create an Account
Thesignup function creates a new Avala account and returns an API key. It does not require authentication.
Authentication
The SDK authenticates using your Avala API key, which is sent via theX-Avala-Api-Key header on every request.
You can provide the key directly or let the SDK read it from the environment.
Option 1: Pass the key directly
Async Support
The SDK ships with a fully async client built on top ofhttpx. Use AsyncClient for non-blocking I/O in async applications.
Working with Datasets
The Python SDK is currently read-only for datasets — you can list, retrieve, and browse items but not create or delete datasets. Use the REST API for uploads and mutations.
List Datasets
Get a Dataset
Working with Projects
List Projects
Get a Project
Working with Tasks
List Tasks
Get a Task
Working with Exports
The Python SDK supports full CRUD operations for agents, webhooks, storage configurations, inference providers, quality targets, consensus config, and organizations. Datasets and projects are currently read-only — use the REST API for mutations on those resources.
Create an Export
Poll for Completion
Working with Organizations
List Organizations
Create an Organization
Manage Members
Working with Slices
List Slices
Browsing Dataset Items
List Items in a Dataset
List Sequences
Type Hints
The SDK is fully typed. All response objects are Pydantic models with complete type annotations, giving you autocomplete and type checking out of the box.Error Handling
The SDK raises typed exceptions so you can handle different failure modes precisely.Pagination
List methods return aCursorPage object. You can iterate through items directly or control pagination manually.
Fleet Management
Fleet Management is in preview. APIs described here may change.
fleet namespace provides access to device registry, recordings, events, rules, and alerts.