Skip to main content

hotdata-framework

A Python framework for building Hotdata integrations.

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-framework
# or: pip install hotdata-framework

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.

Download files

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

Source Distribution

hotdata_framework-0.6.2.tar.gz (96.2 kB view details)

Uploaded Source

Built Distribution

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

hotdata_framework-0.6.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file hotdata_framework-0.6.2.tar.gz.

File metadata

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

File hashes

Hashes for hotdata_framework-0.6.2.tar.gz
Algorithm Hash digest
SHA256 320205fb4f2e15d9f81b885136726692d6dc83147fcc50e06fda51dcb81f1d17
MD5 364336ed3e0c53c810b226f040dbc5e5
BLAKE2b-256 96a59472eda2a6e58f0f54170020ea779513980985101cf112a3cbe42ccdef49

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata_framework-0.6.2.tar.gz:

Publisher: publish.yml on hotdata-dev/sdk-python-framework

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_framework-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hotdata_framework-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32816b3e7e659967908b59759f30d37e836a6dbc1fa9aeff8429f0a7cfc1684a
MD5 57d8de91e9f9058e7588571a0fa1dc6a
BLAKE2b-256 1474a89eda37351a311940380652c8ffdd3aae607d8c4e73c509ffce5bf630d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata_framework-0.6.2-py3-none-any.whl:

Publisher: publish.yml on hotdata-dev/sdk-python-framework

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 Sentry Error logging StatusPage Status page