skillfed

sqlalchemy-databricks

SQLAlchemy Dialect for Databricks

sqlalchemy-databricks v0.2.0 469.2K downloads/30d#6,489 on PyPI20
Permissive license MIT Abandoned released

What it is and what it does

sqlalchemy-databricks is a SQLAlchemy dialect that registers the `databricks+connector` driver, allowing you to use SQLAlchemy's ORM and query tools against Databricks clusters. It wraps the official databricks-sql-connector to provide standard SQLAlchemy connection and table introspection APIs.

The package is designed for developers who want to query Databricks using SQLAlchemy's familiar syntax rather than raw SQL. It supports both workspace and SQL analytics clusters through a standard connection URL pattern. However, the project is archived and has received no updates since 2022-05-06, meaning it may not work with recent versions of its dependencies or Databricks platform changes.

Use it for:

  • Building Python applications that query Databricks tables using SQLAlchemy ORM without writing raw SQL.
  • Migrating existing SQLAlchemy code from other databases to Databricks with minimal refactoring.
  • Automating table discovery and metadata inspection on Databricks clusters via SQLAlchemy's reflection API.
  • Prototyping data pipelines that read from Databricks using standard SQLAlchemy patterns.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a SQLAlchemy dialect that connects to Databricks workspaces and SQL analytics clusters using the official databricks-sql-connector driver.

No. The package is abandoned (last update 2022-05-06, archived repository) and has not been maintained since its initial release window. While it has low install friction and permissive MIT licensing, the lack of maintenance creates a high risk of incompatibility with current Databricks and SQLAlchemy versions. For new projects, prefer the official databricks-sql-connector directly or check whether Databricks or the SQLAlchemy community now provide a maintained dialect.

Install

sqlalchemy-databricks on PyPI

pip

pip install sqlalchemy-databricks

uv

uv add sqlalchemy-databricks

poetry

poetry add sqlalchemy-databricks

Installing sqlalchemy-databricks

Before you install

Installation is straightforward with low friction. However, the package is archived and abandoned as of 2023-05-15, with no maintenance activity since its last release on 2022-05-06. Relying on it for new projects carries significant risk of incompatibility with future Databricks or SQLAlchemy releases.

License in practice

MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.

Quickstart

pip install sqlalchemy-databricks

from sqlalchemy import create_engine
engine = create_engine(
    "databricks+connector://token:<token>@<host>:443/<database>",
    connect_args={"http_path": "<cluster_path>"}
)

Requires a Databricks account with a valid token and cluster HTTP path; databricks-sql-connector and SQLAlchemy must be installed as runtime dependencies.

Verify before relying

  • Compatibility with current Databricks SQL connector and SQLAlchemy versions given the package's abandoned status.
  • Whether the dialect works reliably with Python 3.10 despite no recent maintenance.
  • Current viability for production use given the archived repository status.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8,<4.0)
Install friction low — pure-Python wheel
Runtime dependencies 3 — databricks-sql-connector, SQLAlchemy, PyHive
Maintenance abandoned — 1,561 days since the last release
Last repo commit (repository archived)
First released
Downloads 469,236/month — #6,489 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sqlalchemy_databricks-0.2.0-py3-none-any.whl

Keywords: databricks, sqlalchemy, dialect

License :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: DatabaseTopic :: Database :: Front-Ends

Tags

sqlalchemy databricks dialectdatabricks sql connectororm for databricksdatabricks database adaptersqlalchemy databricks integration
abandoneddatabrickssqlalchemy-dialect

More Database packages

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

redis

Python client library for connecting to and…

permissive · top 1,000 on PyPI

ydb

YDB Python SDK is the official client library…

permissive · top 1,000 on PyPI

snowflake-connector-python

Connects Python applications to Snowflake data…

permissive · top 1,000 on PyPI

sqlparse

sqlparse tokenizes SQL text into a tree of…

permissive · top 1,000 on PyPI

dbt-adapters

Provides base adapter protocols and shared…

permissive · top 1,000 on PyPI

databricks-dbapi

Provides a DBAPI 2.0 connection interface and…

permissive · top 15,000 on PyPI

databricks-sql-connector

A Python client library that connects to…

permissive · top 1,000 on PyPI

databricks-sqlalchemy

Provides a SQLAlchemy 2.0 dialect that bridges…

permissive · top 1,000 on PyPI

pinotdb

Provides Python DB-API and SQLAlchemy dialect…

permissive · top 1,000 on PyPI

databricks-labs-remorph

Converts SQL code between different database…

unclear · top 5,000 on PyPI

databricks-sql

Provides a Python interface for querying and…

permissive · top 15,000 on PyPI

sqlalchemy-pytds

Provides a SQLAlchemy dialect for connecting to…

permissive · top 5,000 on PyPI

sqlalchemy_exasol

SQLAlchemy dialect that enables Python…

permissive · top 15,000 on PyPI

sqlalchemy-hana

Provides a SQLAlchemy dialect that enables you…

permissive · top 15,000 on PyPI

starrocks

Provides a SQLAlchemy dialect and Alembic…

permissive · top 15,000 on PyPI