Skip to main content Switch to mobile version everstack 0.2.0 The official Python SDK for the Everstack AI platform
pip install everstack==0.2.0 Copy PIP instructions
The official Python SDK for the Everstack AI platform. Requires Python 3.9 or later. Uses HTTP with httpx and Pydantic v2 response models.
pip install everstack Configuration
Set your gateway instance URL and API key before running the examples:
export EVERSTACK_BASE_URL="https://
everstack: no base URL configured. Pass base_url or set EVERSTACK_BASE_URL to your gateway URL, e.g. https://
from everstack import Everstack with Everstack() as client: response = client.chat.completions.create( model="gpt-5.5", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content) for chunk in client.chat.completions.create( model="gpt-5.5", messages=[{"role": "user", "content": "Tell me a short joke"}], stream=True, ): for choice in chunk.choices: print(choice.delta.content or "", end="", flush=True) Chat calls use /openai/v1/chat/completions. Streaming accepts SSE or JSON lines. If the gateway returns a single completion when SSE is disabled, the SDK yields it as one ChatCompletionChunk.
import asyncio from everstack import AsyncEverstack async def main(): async with AsyncEverstack() as client: response = await client.chat.completions.create( model="gpt-5.5", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content) stream = await client.chat.completions.create( model="gpt-5.5", messages=[{"role": "user", "content": "Tell me a short joke"}], stream=True, ) async for chunk in stream: for choice in chunk.choices: print(choice.delta.content or "", end="", flush=True) asyncio.run(main()) Embeddings and models
client.responses.create(..., stream=True) yields the gateway's stream frames as dicts, each wrapped as {"result": {...}}:
a snapshot of the whole response (status: "in_progress" and the full output) whenever its structure changes: a new output item or content part;
a delta frame, with no status and no output, carrying only what one item grew by. result.delta.item_id names the item, and result.delta.content_delta (message text) or result.delta.arguments_delta (function call arguments) is the fragment to append. output_index and content_index locate the item and its content part; like every zero-valued field they are omitted when 0;
the final, full response (status: "completed", "failed" or "incomplete").
To rebuild the output as it arrives, replace each item with a snapshot's version and append each delta's fragment:
items = {} for frame in client.responses.create(model="gpt-5.5", input=[...], stream=True): res = frame.get("result", {}) delta = res.get("delta") if delta: item = items.setdefault(delta["item_id"], {"text": "", "arguments": ""}) item["text"] += delta.get("content_delta", "") item["arguments"] += delta.get("arguments_delta", "") continue for out in res.get("output", []): text = "".join(p.get("text", "") for p in out.get("content", [])) items[out["id"]] = {"text": text, "arguments": out.get("arguments", "")} Errors
from everstack import APIError, Everstack, RateLimitError with Everstack() as client: try: client.models.list() except RateLimitError as error: print(error.message, error.retry_after) except APIError as error: print(error.status_code, error.code, error.message) All SDK errors inherit from EverstackError. HTTP API errors expose status_code, code, param, and message. HTTP status mapping:
RateLimitError.retry_after is a float in seconds when a numeric Retry-After header is present, otherwise None. Errors inside successful response frames raise APIError. Network timeouts raise everstack.TimeoutError, and connection failures raise everstack.ConnectionError. InvalidModelError is also exported for model validation errors.
Both clients expose these resources. Several management resources have different sync and async method layouts; the examples below show the existing sync API.
For example, async agent management uses await client.agents.create_session(...) and await client.agents.run_turn(session_id, user_input="Hello"); async observability uses await client.observability.get_metrics_dashboard(...). client.capture_exception(...) and client.capture_message(...) delegate to traces (await these on the async client). Most management calls return plain dictionaries; chat, embeddings, models and Responses return Pydantic models. The package also exports everstack.evals helpers for pytest evaluation gating and generated model aliases under everstack.generated.models.
Examples and development
The examples/ directory contains sync chat, async chat, agents, Responses, evaluation gating and a live gateway smoke script. All use environment-based configuration. Run python scripts/check_examples.py to check syntax, imports, client construction and resource attribute chains without making gateway calls.
pytest -q tests ruff check src/ mypy src/everstack/ --ignore-missing-imports python scripts/generate_models.py Documentation
See docs.everstack.ai/sdks/python.
Released: Dec 4, 2026
Author: Everstack Labs
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Release files for everstack 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 149.7 kB
Release files / everstack-0.2.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Release files / everstack-0.2.0-py3-none-any.whl
Security for everstack 0.2.0
Both files in this release have been uploaded with provenance metadata.
With provenance everstack-0.2.0.tar.gz Dec 4, 2026
With provenance everstack-0.2.0-py3-none-any.whl Dec 4, 2026
Attestation for everstack-0.2.0.tar.gz
Attestation for everstack-0.2.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 4, 2026 2 release files Full provenance
Apr 16, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 107c339











