hotdata-runtime
Shared runtime primitives for Hotdata integrations: workspace/session semantics, execution context, query state, run history, and replayable result handles. Framework packages (Marimo, Jupyter, Streamlit, LangGraph) depend on this package.
Runtime boundary and guarantees are defined in CONTRACT.md.
Features
- Environment-driven client setup — create clients from
HOTDATA_API_KEY, optionalHOTDATA_API_URL,HOTDATA_WORKSPACE, andHOTDATA_SANDBOX. - Workspace resolution — choose an explicit workspace from env, otherwise discover workspaces and select the active workspace or first available workspace.
- Sandbox/session propagation — pass sandbox session context through the SDK via
X-Session-Id. - HTTP resilience — configure SDK retries for transient connection failures and retry SQL execution on stale pooled sockets.
- SQL execution helper — run SQL through
POST /v1/query, poll async query runs when needed, and return aQueryResult. - Result utilities — convert query results to records, pandas DataFrames, or metadata dictionaries for adapter display layers.
- History helpers — list recent results and query run history with normalized dataclasses.
- Managed databases — create Hotdata-owned catalogs, declare tables, upload parquet, and load managed tables (mirrors
hotdata databasesin the CLI). - Health helpers — build compact API/workspace health summaries for UI integrations.
Install:
uv pip install hotdata-runtime
# or: pip install hotdata-runtime
Example:
python examples/basic_usage.py
Development (uses uv; creates .venv/ in this repo):
uv sync --locked
uv run pytest
uv.lock is checked in so CI can run uv sync --locked. The default dev group (pytest) is enabled via [tool.uv] default-groups.
Metadata
Release files for hotdata-runtime 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hotdata_runtime-0.3.0.tar.gz | 91.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hotdata_runtime-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.9 kB
Release files / hotdata_runtime-0.3.0.tar.gz
| Download URL | hotdata_runtime-0.3.0.tar.gz |
|---|---|
| Size | 91.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96807f20df48e727431af96d47b1ec3c19d067a4fdc4ddd746ba6a508202e3af
|
|
BLAKE2b-256 checksum How to use checksums |
9aa1f5d7d34a646dd3b43f2c7428664f1863714138df59ebe7c7027e69c22194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Jun 22, 2026.
Transparency logRelease files / hotdata_runtime-0.3.0-py3-none-any.whl
| Download URL | hotdata_runtime-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e546af1652d324b6e6e2832bb2af73b7c639c02670ecc4d34a8c7141fcdc83ac
|
|
BLAKE2b-256 checksum How to use checksums |
1cef44a21b447070196c963eb975a6e10c8d90c66f1207328a41c1d36520ab0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Jun 22, 2026.
Transparency log