Installation
odcr is a pure-Python package (Python 3.10–3.13). It runs anywhere Python runs: Windows, macOS, Linux and Unix servers (AIX, Solaris and others through the database drivers available there), containers, Kubernetes, Databricks clusters, Azure Functions and AWS Lambda.
Install the connector for your platform
Like dbt-postgres or dbt-snowflake, every platform has its own package. It installs odcr plus that
platform's driver — no brackets, no quotes:
pip install odcr-postgres # one platform
pip install odcr-snowflake odcr-databricks # several
pip install odcr-all # every driver
odcr adapters # what is supported and what is installed
| Package | Platforms |
|---|---|
odcr |
the core, plus SQLite (built into Python) |
odcr-duckdb |
DuckDB, MotherDuck |
odcr-files |
Parquet / CSV / JSON in local folders, network shares, ADLS Gen2, Azure Blob, S3, GCS, MinIO |
odcr-postgres |
PostgreSQL, Aurora / RDS, Azure Database for PostgreSQL, Cloud SQL, AlloyDB, Greenplum, CockroachDB, YugabyteDB, TimescaleDB |
odcr-mysql |
MySQL, MariaDB, Aurora / RDS, Azure Database for MySQL, Cloud SQL, TiDB, SingleStore |
odcr-sqlserver |
SQL Server, Azure SQL Database, Azure SQL Managed Instance |
odcr-synapse |
Azure Synapse Analytics (dedicated SQL pools) |
odcr-fabric |
Microsoft Fabric Warehouse |
odcr-oracle |
Oracle Database, Autonomous Database |
odcr-db2 |
IBM Db2 LUW, Db2 on Cloud, Db2 Warehouse |
odcr-teradata |
Teradata Vantage, VantageCloud |
odcr-saphana |
SAP HANA Cloud, SAP HANA on-premise, SAP Datasphere |
odcr-vertica |
Vertica on-premise and Eon mode |
odcr-clickhouse |
ClickHouse, ClickHouse Cloud, Altinity, Aiven |
odcr-hive |
Apache Hive, Spark SQL Thrift server (Cloudera, EMR, Dataproc, HDInsight) |
odcr-impala |
Apache Impala (Cloudera) |
odcr-trino |
Trino, Starburst, Presto |
odcr-snowflake |
Snowflake |
odcr-databricks |
Databricks on Azure, AWS and GCP |
odcr-bigquery |
Google BigQuery |
odcr-redshift |
Amazon Redshift |
odcr-athena |
Amazon Athena |
odcr-mongodb |
MongoDB, Atlas, Amazon DocumentDB, Cosmos DB for MongoDB |
odcr-cosmosdb |
Azure Cosmos DB for NoSQL |
odcr-kafka |
Apache Kafka, Confluent, Amazon MSK, Aiven, Redpanda, IBM Event Streams |
odcr-eventhubs |
Azure Event Hubs (Kafka endpoint, Entra ID) |
odcr-all |
every driver above |
The equivalent "extras" form also works: pip install "odcr[postgres]". In zsh (the macOS default shell) the
brackets must be quoted; the odcr-<platform> packages avoid that.
Optional features: pip install "odcr[keyring]" (OS keychain secrets), "odcr[microsoft365]" (email via
Microsoft Graph), "odcr[aws-ses]" (email via Amazon SES), "odcr[lint]" (Data Contract CLI linting).
Per operating system
python3 -m venv /opt/odcr/venv
/opt/odcr/venv/bin/pip install odcr-postgres
/opt/odcr/venv/bin/odcr --version
SQL Server via ODBC needs the Microsoft ODBC Driver 18
(client: pyodbc), or use the pure-Python client with client: pytds.
py -m venv C:\odcr\venv
C:\odcr\venv\Scripts\pip install odcr-sqlserver
C:\odcr\venv\Scripts\odcr --version
The ODBC Driver 18 for SQL Server is usually already installed; Entra ID (authentication:
ActiveDirectoryIntegrated) works with your Windows login.
brew install python@3.12
python3 -m venv ~/.odcr && ~/.odcr/bin/pip install odcr-snowflake
pipx install odcr-postgres
Servers without internet access
Build a wheelhouse on a machine with access, copy it over, and install offline:
pip download odcr-postgres odcr-sqlserver -d wheelhouse --platform manylinux2014_x86_64 --only-binary=:all: --python-version 3.12
pip install --no-index --find-links wheelhouse odcr-postgres odcr-sqlserver
Behind a corporate proxy or with a private CA
pip install --proxy http://proxy.example.com:8080 --cert /etc/ssl/certs/corporate-ca.pem odcr-all
At run time, see Security: every connection verifies TLS certificates, and a corporate CA bundle can be configured for notifications and cloud storage.
Docker
A ready-made image with odcr and the drivers for every platform (including the Microsoft ODBC Driver 18),
for linux/amd64 and linux/arm64 (Apple silicon, Graviton). No Python needed on the machine:
docker pull ghcr.io/sulfibashy/odcr:latest # or a version: ghcr.io/sulfibashy/odcr:0.2.2
docker run --rm -v "$PWD:/work" --env-file .env ghcr.io/sulfibashy/odcr odcr run --contract-id orders
The project folder is mounted at /work; connection settings come from environment variables
(--env-file .env or -e NAME). Use it as the container of a pipeline job, for example in Azure DevOps:
jobs:
- job: contract_checks
container: ghcr.io/sulfibashy/odcr:0.2.2
steps:
- script: odcr run --contract-id orders --batch-id $(Build.BuildId)
The same image works in GitHub Actions (container:), GitLab CI (image:), Airflow's
KubernetesPodOperator / DockerOperator, Azure Container Apps jobs and Kubernetes Jobs.
IBM Db2 is included on amd64 only (IBM publishes no ARM64 Linux driver).
To build a smaller image with only the adapters you use:
docker build -t odcr --build-arg EXTRAS=postgres,sqlserver https://github.com/sulfibashy/odcr.git
Databricks, Azure Functions, AWS Lambda
%pip install odcr-databricks in a notebook or as a cluster / job library; add odcr-<adapter> to
requirements.txt for Functions and Lambda. Call the Python API.