Skip to main content

Workspace/session runtime primitives for Hotdata integrations

Project description

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, optional HOTDATA_API_URL, HOTDATA_WORKSPACE, and HOTDATA_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 a QueryResult.
  • 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 databases in 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hotdata_runtime-0.2.3.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hotdata_runtime-0.2.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file hotdata_runtime-0.2.3.tar.gz.

File metadata

  • Download URL: hotdata_runtime-0.2.3.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hotdata_runtime-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8631edc4b17debe0a8089f88d2d13abc8fd307827f8c78b9c5bb8e84fdcbc698
MD5 44893d02de3857c70e9440bd514defae
BLAKE2b-256 e95f49add2fc8a6adb53320c1db6c67333f4f71f67f124baff19a66530042ff3

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata_runtime-0.2.3.tar.gz:

Publisher: publish.yml on hotdata-dev/hotdata-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hotdata_runtime-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hotdata_runtime-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46b4afaf7cf3c1b9c6f8f071e8a841c4c30f8674301abd72db1afdc8124094ef
MD5 d2974473f4d5e527d1e776c1f231d4f5
BLAKE2b-256 8c713a7af1d7dbf8b28023685f8ed7444c2b2ecf824ff6f6af1855124528bd9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata_runtime-0.2.3-py3-none-any.whl:

Publisher: publish.yml on hotdata-dev/hotdata-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page