arrow-odbc
Read the data of an ODBC data source as sequence of Apache Arrow record batches.
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-odbcuv
uv add arrow-odbcpoetry
poetry add arrow-odbcInstalling 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
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
iomete-sqlalchemyProvides a SQLAlchemy dialect for connecting to…
permissive · top 15,000 on PyPI
adbc-driver-managerProvides Python bindings to load and use ADBC…
permissive · top 5,000 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
fastexcelReads Excel files (.xlsx, .xls) into Python…
permissive · top 5,000 on PyPI
pyodbcpyodbc provides Python access to ODBC databases…
permissive · top 1,000 on PyPI
pylancePylance is a Python wrapper for the Lance…
permissive · top 5,000 on PyPI
adbc-driver-sqliteProvides a DBAPI 2.0-compatible Python…
permissive · top 5,000 on PyPI
adbc-driver-flightsqlProvides a DBAPI 2.0-compatible Python…
permissive · top 15,000 on PyPI
vortex-dataVortex-data provides Python bindings to work…
permissive · top 15,000 on PyPI
slingSling moves data between databases, files, and…
unclear · top 15,000 on PyPI