AsyncDevHelm client provides the same methods as the sync client but returns awaitables for use with asyncio.
Initialize
Devhelm:
| Parameter | Type | Default | Description |
|---|---|---|---|
token | str | DEVHELM_API_TOKEN env | API token |
base_url | str | https://api.devhelm.io | API base URL |
org_id | str | DEVHELM_ORG_ID env or "1" | Organization ID |
timeout | float | 30.0 | Request timeout in seconds |
Basic usage
Concurrent operations
The async client enables concurrent API calls:Batch operations
Create multiple resources concurrently:Error handling
Error handling works the same as the sync client —DevhelmError and AuthError are raised as exceptions:
When to use async
| Use case | Recommended |
|---|---|
| Script that makes a few API calls | Sync Devhelm |
| Bulk operations (many creates/updates) | Async AsyncDevHelm |
| Web app or API server handler | Async AsyncDevHelm |
| Monitoring dashboard with parallel fetches | Async AsyncDevHelm |
Next steps
Client reference
Full method reference for all resources.
Error handling
Exception types and retry patterns.