skillfed

arrow-odbc

Read the data of an ODBC data source as sequence of Apache Arrow record batches.

arrow-odbc v10.4.2 186.0K downloads/30d#9,997 on PyPI77
Permissive license MIT Active released

What it is and what it does

arrow-odbc bridges ODBC data sources and Apache Arrow by reading SQL query results directly into Arrow record batches. It wraps a Rust crate and uses cffi to bind Python with efficient bulk-read operations, avoiding serialization overhead. The package handles type mapping between ODBC and Arrow schemas (e.g., SQL Numeric to Decimal128, Timestamp to TimestampNanosecond) and supports parameterized queries.

Typical workflows involve querying any ODBC-accessible database—MySQL, MS SQL, Excel, etc.—and receiving data as Arrow batches that can be converted to pandas DataFrames or processed in columnar form. It also supports inserting Arrow data back into tables. The package requires a system-level ODBC driver manager but provides prebuilt wheels for macOS (Intel and ARM), Linux, and Windows, making deployment straightforward once the driver manager is present.

Use it for:

  • Extract data from SQL Server, MySQL, or other ODBC sources into Arrow for zero-copy analytics pipelines.
  • Bulk-insert pandas DataFrames or Arrow tables into databases via ODBC without intermediate serialization.
  • Read Excel spreadsheets through ODBC drivers and convert to Arrow for data processing.
  • Build ETL workflows that move data between legacy ODBC sources and modern columnar storage.
  • Integrate ODBC data access into data science notebooks with efficient memory usage via Arrow batches.

Worth the install?

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

Reads data from ODBC data sources directly into Apache Arrow record batches, enabling efficient columnar data access from databases, spreadsheets, and other ODBC-compatible sources.

Yes, if you need to read from ODBC data sources and want efficient columnar access. The MIT license, active maintenance, and prebuilt wheels make it low-friction for most platforms. Install friction is moderate due to the system ODBC driver manager requirement, but this is a one-time setup. No known vulnerabilities. Suitable for production use in data pipelines and analytics workflows.

Install

arrow-odbc on PyPI

pip

pip install arrow-odbc

uv

uv add arrow-odbc

poetry

poetry add arrow-odbc

Installing arrow-odbc

Before you install

Medium install friction due to system-level ODBC driver manager dependency (unixodbc-dev on Linux, UnixODBC via homebrew on macOS, preinstalled on Windows). Package provides prebuilt wheels for common platforms but requires external system library. Actively maintained with recent releases.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.

Quickstart

pip install arrow-odbc

from arrow_odbc import connect

connection = connect(
    connection_string="Driver={ODBC Driver 18 for SQL Server};Server=localhost;",
    user="SA",
    password="password",
)
reader = connection.read_arrow_batches(query="SELECT * FROM MyTable")
for batch in reader:
    df = batch.to_pandas()

System ODBC driver manager must be installed (unixodbc-dev on Ubuntu, UnixODBC on macOS via homebrew, preinstalled on Windows). Requires Python >= 3.10.

Verify before relying

  • Performance characteristics compared to direct database drivers or other Arrow connectors in typical workloads.
  • Completeness of ODBC driver support across different database systems and edge cases.
  • Stability and maturity level for production use in high-throughput scenarios.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 2 — cffi, pyarrow
Maintenance actively maintained — 56 days since the last release
Last repo commit
First released
Downloads 185,987/month — #9,997 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: arrow_odbc-10.4.2-py3-none-macosx_10_12_x86_64.whl; arrow_odbc-10.4.2-py3-none-macosx_11_0_arm64.whl; arrow_odbc-10.4.2-py3-none-manylinux_2_28_aarch64.whl; arrow_odbc-10.4.2-py3-none-manylinux_2_28_x86_64.whl; arrow_odbc-10.4.2-py3-none-win_amd64.whl

Tags

odbc to arrow conversionread database into arrowodbc data source connectorarrow record batch readersql to arrow batchescolumnar database accessodbc python bridge
odbc-connectorarrow-integrationdata-pipeline

More Database packages