AsyncESIOSClient to make concurrent API calls with asyncio.
Setup
Basic usage
The async client providesget() and download() methods that return raw API responses (dicts), not DataFrames. You handle the data processing.
Concurrent requests
Fetch multiple indicators in parallel:When to use async vs sync
| Use case | Client |
|---|---|
| Notebooks, scripts, CLI | ESIOSClient (sync) |
| Web apps (FastAPI, etc.) | AsyncESIOSClient |
| Bulk downloads (100+ requests) | AsyncESIOSClient |
| Simple analysis | ESIOSClient (sync) |
- Caching
- DataFrame conversion
- Geo pivoting
