Skip to main content

tentaclio-databricks

A package containing all the dependencies for the databricks+thrift tentaclio schema .

Quick Start

This project comes with a Makefile which is ready to do basic common tasks

$ make help
install                       Initalise the virtual env installing deps
clean                         Remove all the unwanted clutter
lock                          Lock dependencies
update                        Update dependencies (whole tree)
sync                          Install dependencies as per the lock file
lint                          Lint files with flake and mypy
format                        Run black and isort
test                          Run unit tests
circleci                      Validate circleci configuration (needs circleci cli)

Configuring access to Databricks

Your connection url should be in the following format:

databricks+thrift://<token>@<host>?HTTPPath=<http_path>

Example values:

  • token: dapi1213456789abc
  • host: myhost.databricks.com
  • http_path: /sql/1.0/endpoints/123456789

Query Comments

Queries can be annotated with comments for observability using the query_annotations parameter.

Example: Basic usage

import os
from tentaclio import URL
from tentaclio_databricks.clients.databricks_client import DatabricksClient

url = URL("databricks+thrift://token@host.databricks.com?HTTPPath=/sql/1.0/endpoints/123")
client = DatabricksClient(
    url,
    query_annotations={
        "app_name": "JupyterHub",
        "user": os.environ.get("USER_NAME", "unknown"),
        "pipeline_id": "456"
    }
)

Result

All queries executed by the client will have prepended comments:

/* app_name='JupyterHub', user='john', pipeline_id='456' */
SELECT * FROM table

Arrow Usage

DatabricksClient enables Arrow's usage for faster data transfer and more faithful type handling.

Example: Default row-based fetch

from tentaclio import URL
from tentaclio_databricks.clients.databricks_client import DatabricksClient

url = URL("databricks+thrift://token@host.databricks.com?HTTPPath=/sql/1.0/endpoints/123")
with DatabricksClient(url) as client:
    df = client.get_df("SELECT * FROM sample_table")

When Arrow is disabled, the client falls back to fetchall() and uses arraysize for the cursor.

Example: Arrow enabled

from tentaclio import URL
from tentaclio_databricks.clients.databricks_client import DatabricksClient

url = URL("databricks+thrift://token@host.databricks.com?HTTPPath=/sql/1.0/endpoints/123")
with DatabricksClient(url, use_arrow=True) as client:
    df = client.get_df("SELECT * FROM sample_table")

When Arrow is enabled, the client configures the connection with:

  • use_arrow_native_complex_types
  • use_arrow_native_decimals
  • use_arrow_native_timestamps

Metadata

Release files for tentaclio-databricks 2.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tentaclio-databricks 2.2.1
File Size Uploaded Provenance Actions
tentaclio_databricks-2.2.1.tar.gz 133.5 kB With provenance Details for tentaclio_databricks-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tentaclio-databricks 2.2.1
File Interpreter ABI Platform Actions
tentaclio_databricks-2.2.1-py3-none-any.whl Python 3 none any Details for tentaclio_databricks-2.2.1-py3-none-any.whl

Total release size: 139.9 kB

Release files / tentaclio_databricks-2.2.1.tar.gz

Download URL tentaclio_databricks-2.2.1.tar.gz
Size 133.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3861bea8c6129cdfb2104c7aa0782d8ebc0124f7575756ded9730ee168abea10
BLAKE2b-256 checksum
How to use checksums
5c451f1e633bad8e60213f8ab09a10b8879d7cdd5b7ae1198e4f75b9ebfad182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Oct 26, 2026.

Transparency log

Release files / tentaclio_databricks-2.2.1-py3-none-any.whl

Download URL tentaclio_databricks-2.2.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
226db044ba2fb48f1cf8c223f9b4db0753bff698edcc4ab31cb1ffdc1c6674b5
BLAKE2b-256 checksum
How to use checksums
8e8328106d554e76f1d8a93c26af0d995276817222f6e531013ec836f393a8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Oct 26, 2026.

Transparency log

Security for tentaclio-databricks 2.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tentaclio_databricks-2.2.1.tar.gz

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 Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page