woodwide package is the official Python client for Wood Wide. It provides typed methods, Pydantic responses, and IDE autocomplete for training and inference workflows.
For your first upload → train → infer workflow, use the Python (SDK) tab in the API quickstart. This page covers installation, configuration, and SDK-specific features.
PyPI
Install, release history, and package README.
API quickstart
First workflow with an SDK tab alongside curl and JavaScript.
The SDK source repository is not public yet. Use the PyPI project page for the package README, or inspect methods in Python with
help(client.api.models.prediction.train).Install
Requires Python 3.9+.Pin a version in production. Check PyPI for the latest release.
Configure authentication
The SDK uses
WOOD_WIDE_AI_API_KEY and WOOD_WIDE_BASE_URL. The HTTP API and CLI use WOODWIDE_API_KEY and WOODWIDE_BASE_URL — same keys, different env names. Set WOOD_WIDE_BASE_URL explicitly; do not rely on the client default.Async client
UseAsyncWoodWide with await on each call:
aiohttp backend: pip install woodwide[aiohttp]
Errors and retries
The SDK raises typed exceptions (AuthenticationError, RateLimitError, etc.) and retries connection errors and many 5xx responses by default.
Model types
Training and inference are grouped by task:| Task | Train | Infer |
|---|---|---|
| Prediction | client.api.models.prediction.train(...) | client.api.models.prediction.infer(model_id, dataset_id=...) |
| Clustering | client.api.models.clustering.train(...) | client.api.models.clustering.infer(...) |
| Anomaly | client.api.models.anomaly.train(...) | client.api.models.anomaly.infer(...) |
| Embedding | client.api.models.embedding.train(...) | client.api.models.embedding.infer(...) |
| Factors | client.api.models.factors.train(...) | client.api.models.factors.infer(...) |
| Search | HTTP API only | HTTP API only |
per_row output) are not in the SDK yet — use the HTTP tabs on those pages.
Next steps
API quickstart
First workflow with an SDK tab alongside curl and JavaScript.
CLI
Script the same workflow from the shell.