Python SDK
Installation
Install the Staso Python SDK and pick the extras that match the LLM providers you use.
pip install stasoRequirements
- Python 3.11 or newer.
- A Staso API key. See Create an API key.
Install options
| Install | Use case |
|---|---|
pip install staso | Core SDK only. Decorators, spans, conversations, annotations. |
pip install "staso[anthropic]" | Auto-instrument the Anthropic SDK. |
pip install "staso[openai]" | Auto-instrument the OpenAI SDK. |
pip install "staso[all]" | Both Anthropic and OpenAI auto-instrumentation. |
The extras pull in the matching provider SDK and wire up agent instrumentation automatically at import time. No extra calls required.
Verify
python -c "import staso; print(staso.__version__)"