5-6 min • API key setup, SDK installation, first API call
Prerequisites: You need an Avala account. Sign up at avala.ai or create one programmatically with the SDK (see below), then create an API key under Settings > Security.
pip install avala
from avala import Clientclient = Client(api_key="avk_your_api_key")for dataset in client.datasets.list(): print(dataset.name, dataset.item_count)
That’s it. Below is a step-by-step walkthrough of what’s happening and what you can do next.
Exports run asynchronously. Poll the status with client.exports.get(uid) or use avala exports wait <uid> in the CLI to block until completion. Pass -o json to any CLI command for machine-readable output.