Skip to main content

pydataframer-databricks

Databricks connector for DataFramer.

Installation

pip install pydataframer-databricks

Usage

Inside a Databricks notebook the connector authenticates as whoever runs the notebook and finds the workspace's SQL warehouse itself. scope is the Databricks secret scope that holds your DataFramer API key.

from pydataframer_databricks import DatabricksConnector, DatasetType, FileType

databricks_connector = DatabricksConnector(scope="dataframer")
api_key = databricks_connector.get_secret("DATAFRAMER_API_KEY")

Anywhere else there is no workspace identity and no secret scope, so pass the connection details in. The SQL warehouse's HTTP path is on its Connection details tab.

databricks_connector = DatabricksConnector(
    server_hostname="dbc-xxxxx.cloud.databricks.com",
    http_path="/sql/1.0/warehouses/xxxxxxxx",
    client_id="<service principal client ID>",
    client_secret="<service principal secret>",
)

Fetch sample data

df = databricks_connector.fetch_sample_data(
    num_items_to_select=100,
    table_name="catalog.schema.table"
)

Load to table (SINGLE_FILE: CSV, JSON, JSONL)

databricks_connector.load_to_table(
    table_name="catalog.schema.generated_samples",
    downloaded_zip=downloaded_zip,
    dataset_type=DatasetType.SINGLE_FILE,
    file_type=FileType.CSV,  # or FileType.JSON, FileType.JSONL
)

Load to volume (any dataset type)

databricks_connector.load_to_volume(
    volume_path="/Volumes/catalog/schema/volume_name",
    downloaded_zip=downloaded_zip,
    output_folder="generated_samples",  # optional
)

Metadata

Release files for pydataframer-databricks 0.3.0

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

Source distribution (sdist)

Source distribution for pydataframer-databricks 0.3.0
File Size Uploaded
pydataframer_databricks-0.3.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydataframer-databricks 0.3.0
File Interpreter ABI Platform
pydataframer_databricks-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / pydataframer_databricks-0.3.0.tar.gz

Download URL pydataframer_databricks-0.3.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7b43b4c0c244521251ad1bffaf9e67520ddf6506f1f8e6f4f7ae19014412b8ca
BLAKE2b-256 checksum
How to use checksums
7ff65502039d9c26773eac4ac46a4e28d44f9c5ba2efef427c3f9a21bf085b22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release files / pydataframer_databricks-0.3.0-py3-none-any.whl

Download URL pydataframer_databricks-0.3.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005a390e47da86d0d497ac2906fdb16851e03ed358702257ae51f5eb511b0ec2
BLAKE2b-256 checksum
How to use checksums
9fec0167744506ee192993ffea2d5385db4e00f367406345aec0f8ecdc731d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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