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.

Pandas 2 and 3 are supported. Pandas 3 may infer different string and timestamp types from pandas 2; Arrow and row-based results can also have different timestamp precision. For an all-null string column, Arrow can return NaN where row-based fetching returns None; use pandas.isna() to check for missing values. Specify data types explicitly if downstream code depends on them.

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.2

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.2
File Size Uploaded Provenance Actions
tentaclio_databricks-2.2.2.tar.gz 134.2 kB With provenance Details for tentaclio_databricks-2.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 140.7 kB

Release files / tentaclio_databricks-2.2.2.tar.gz

Download URL tentaclio_databricks-2.2.2.tar.gz
Size 134.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53f0fc9042d5ce998f563dd48fcb6a4b02ea0eb8ac937e108799a709a7f9ddb4
BLAKE2b-256 checksum
How to use checksums
37a8a47fe62ff57fe35438cc1781110d070b14470af67bbfd7a57eb96a75b6cc
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 Nov 24, 2026.

Transparency log

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

Download URL tentaclio_databricks-2.2.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8075945869b119a2b7a9c162950f7369a23e380e016c21d40f893dcc7e0fa2a0
BLAKE2b-256 checksum
How to use checksums
1baec6e968c16d66a1c9481b614b9a9b06e4ad3159c70a4623cce5acd5f5fdc9
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 Nov 24, 2026.

Transparency log

Security for tentaclio-databricks 2.2.2

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.2.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 Nov 24, 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