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, 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hotdata_runtime-0.1.1.tar.gz.
File metadata
- Download URL: hotdata_runtime-0.1.1.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed64b430f258b3505cf2d1f6635069fc1afef6df6fc3fca5e52ac578e69ead7
|
|
| MD5 |
2b790248ba2ea722cf2985210318bbb1
|
|
| BLAKE2b-256 |
860bb2889774abaa555be7625999c8730361d86f588aec7219918c616817cdb1
|
Provenance
The following attestation bundles were made for hotdata_runtime-0.1.1.tar.gz:
Publisher:
publish.yml on hotdata-dev/hotdata-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotdata_runtime-0.1.1.tar.gz -
Subject digest:
3ed64b430f258b3505cf2d1f6635069fc1afef6df6fc3fca5e52ac578e69ead7 - Sigstore transparency entry: 1572143575
- Sigstore integration time:
-
Permalink:
hotdata-dev/hotdata-runtime@a427d1bfa7e65f90d624e95c8cf15311898e42c5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hotdata-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a427d1bfa7e65f90d624e95c8cf15311898e42c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hotdata_runtime-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hotdata_runtime-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51da53100329fbf634abbe95073b2edbbdad174886263b40652091a88f41f0ad
|
|
| MD5 |
fff8f9ebd1307357345f36a2336e1092
|
|
| BLAKE2b-256 |
fa7b98cf841d7900e4eb198d1a393828a0999d9b4d54ef792cec5fa3eb4c5a01
|
Provenance
The following attestation bundles were made for hotdata_runtime-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on hotdata-dev/hotdata-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotdata_runtime-0.1.1-py3-none-any.whl -
Subject digest:
51da53100329fbf634abbe95073b2edbbdad174886263b40652091a88f41f0ad - Sigstore transparency entry: 1572143610
- Sigstore integration time:
-
Permalink:
hotdata-dev/hotdata-runtime@a427d1bfa7e65f90d624e95c8cf15311898e42c5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hotdata-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a427d1bfa7e65f90d624e95c8cf15311898e42c5 -
Trigger Event:
push
-
Statement type: