Skip to main content

Official Python client for the Hotdata API

Project description

hotdata

Official Python client for the Hotdata HTTP API: workspaces, connections, datasets, SQL queries, results, secrets, uploads, indexes, jobs, embedding providers, and workspace context.

The package is produced with OpenAPI Generator from the Hotdata OpenAPI spec.

Requirements

Python 3.9+

Install

From the repository:

pip install "git+https://github.com/hotdata-dev/sdk-python.git"

From a local checkout (editable):

pip install -e .

Tests

pytest

Authentication

The API uses Bearer JWTs and an X-Workspace-Id header on requests that are scoped to a workspace.

import hotdata

configuration = hotdata.Configuration(
    access_token="YOUR_ACCESS_TOKEN",
    api_key={"WorkspaceId": "YOUR_WORKSPACE_ID"},
)

host defaults to https://app.hotdata.dev. Override it if you target another environment.

Usage

import hotdata
from hotdata.rest import ApiException

configuration = hotdata.Configuration(
    access_token="YOUR_ACCESS_TOKEN",
    api_key={"WorkspaceId": "YOUR_WORKSPACE_ID"},
)

with hotdata.ApiClient(configuration) as api_client:
    workspaces = hotdata.WorkspacesApi(api_client)
    try:
        response = workspaces.list_workspaces()
    except ApiException as e:
        print(f"API error: {e.status} {e.reason}\n{e.body}")

Each Api class groups endpoints by resource. Construct the client, then call the typed methods you need.

API reference

Generated Markdown for every operation and model is in docs/:

  • Resource APIs: docs/*Api.md (for example docs/QueryApi.md)
  • Request and response models: docs/<ModelName>.md

Use your editor or GitHub file search there instead of duplicating large tables in this file.

Support

Questions and issues: github.com/hotdata-dev/sdk-python.

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-0.0.1.tar.gz (93.4 kB view details)

Uploaded Source

Built Distribution

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

hotdata-0.0.1-py3-none-any.whl (230.7 kB view details)

Uploaded Python 3

File details

Details for the file hotdata-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for hotdata-0.0.1.tar.gz
Algorithm Hash digest
SHA256 46878d9a852c9d5d6463efc324ad3a42ec70267ff6ef1f1242ff812efd840f6e
MD5 42626aad871df00d460062a670ae15e0
BLAKE2b-256 f6b9bb661f2390dfcc703cbe13b1ac99a1e1212b104c8a405e2ee2b7cf1f7ba1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata-0.0.1.tar.gz:

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

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

File metadata

  • Download URL: hotdata-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 230.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hotdata-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e94e985bab88b8548ba40c89146f1dcd7346b798cd31735cc5b181442f93714
MD5 b4c6d0fff10e4c5e323884bf75cbb2ae
BLAKE2b-256 2444e79f395c2a2071918b21c9be36a8c23cb298eddcf4428ac46cea6675c36b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotdata-0.0.1-py3-none-any.whl:

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

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