skillfed

teradatasqlalchemy

Teradata SQL Driver Dialect for SQLAlchemy

teradatasqlalchemy v20.0.0.9 5.2M downloads/30d#2,149 on PyPI
License unclear Teradata License Agreement AGING released

What it is and what it does

teradatasqlalchemy is a SQLAlchemy dialect that bridges Python applications to Teradata databases. It works by implementing SQLAlchemy's dialect interface, allowing developers to use SQLAlchemy's ORM, Core, and SQL expression APIs against Teradata instead of writing raw SQL. The package depends on sqlalchemy and teradatasql and requires 64-bit Python 3.4 or later on Windows, macOS, or Linux.

The dialect maps Teradata-specific data types—including arrays, vectors, JSON, XML, and temporal types—to SQLAlchemy type objects, and provides Teradata-specific methods like partition_by() and has_table() with datalake support. Recent versions added queryband telemetry tracking, support for views and external tables, and expanded array type coverage. Connection is configured via a teradatasql:// URL scheme with parameters for account, authentication, and connection tuning.

Use it for:

  • Build Python applications using SQLAlchemy ORM against Teradata without writing native SQL.
  • Migrate SQLAlchemy code from other databases to Teradata by swapping the connection dialect.
  • Query Teradata tables and views programmatically within data pipelines or ETL workflows.
  • Track application usage and performance via queryband telemetry integration with Teradata logs.
  • Work with Teradata-specific data types (arrays, vectors, JSON, XML) through SQLAlchemy's type system.

Worth the install?

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

Provides a SQLAlchemy dialect that enables Python applications to connect to and query Teradata databases using SQLAlchemy's ORM and SQL expression language.

Yes, if you are locked into Teradata and need SQLAlchemy integration. The package is stable (no vulnerabilities), has low install friction, and is widely used. However, the proprietary license is unclear and maintenance is aging (241 days since last release). Verify license terms and test compatibility with your SQLAlchemy and Teradata versions before committing to production use.

Install

teradatasqlalchemy on PyPI

pip

pip install teradatasqlalchemy

uv

uv add teradatasqlalchemy

poetry

poetry add teradatasqlalchemy

Installing teradatasqlalchemy

Before you install

Low friction installation as a pure-Python wheel. Maintenance status is aging—last release was 241 days ago—but the package remains actively used (top 5000 on PyPI) and has no known security vulnerabilities.

License in practice

Licensed under a proprietary Teradata License Agreement with unclear terms. Users should review the LICENSE file included in the package installation to understand usage restrictions before adopting it in production.

Quickstart

pip install teradatasqlalchemy

import sqlalchemy
eng = sqlalchemy.create_engine('teradatasql://guest:please@whomooz')

Requires 64-bit Python 3.4 or later; 32-bit Python is not supported.

Verify before relying

  • Whether the proprietary license permits commercial use without additional licensing agreements.
  • Current state of SQLAlchemy 2.0+ compatibility beyond what release notes indicate.
  • Whether 64-bit Python requirement is enforced or advisory.

Package facts

License Teradata License Agreement (unclear)
Python support supports the current Python release (>=3.4)
Install friction low — pure-Python wheel
Runtime dependencies 2 — sqlalchemy, teradatasql
Maintenance aging — 241 days since the last release
First released
Downloads 5,176,814/month — #2,149 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: teradatasqlalchemy-20.0.0.9-py3-none-any.whl

Keywords: Teradata

License :: Other/Proprietary LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Database :: Front-Ends

Tags

sqlalchemy teradata dialectteradata database python ormconnect teradata sqlalchemyteradata sql driverpython teradata database adaptersqlalchemy teradata connectorteradata query builder python
sqlalchemy-dialectteradata-integration

More Front-Ends packages

SQLAlchemy

SQLAlchemy is a Python SQL toolkit and Object…

permissive · top 100 on PyPI

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

alembic

Alembic generates and manages database schema…

permissive · top 1,000 on PyPI

weaviate-client

A Python client library for connecting to and…

permissive · top 1,000 on PyPI

databricks-sql-connector

A Python client library that connects to…

permissive · top 1,000 on PyPI

psycopg

Psycopg 3 is a PostgreSQL database adapter for…

copyleft · top 1,000 on PyPI

teradata

Provides Python bindings to execute SQL scripts…

permissive · top 15,000 on PyPI

teradataml

teradataml provides Python access to analytic…

unclear · top 15,000 on PyPI

teradatasql

A PEP-249 compliant Python database driver that…

unclear · top 5,000 on PyPI

sqlalchemy-solr

Provides a SQLAlchemy dialect that allows you…

permissive · top 15,000 on PyPI

sqlalchemy-pytds

Provides a SQLAlchemy dialect for connecting to…

permissive · top 5,000 on PyPI

databricks-sqlalchemy

Provides a SQLAlchemy 2.0 dialect that bridges…

permissive · top 1,000 on PyPI

sqlalchemy_exasol

SQLAlchemy dialect that enables Python…

permissive · top 15,000 on PyPI

sqlalchemy-vertica

Provides a SQLAlchemy dialect for Vertica,…

permissive · top 15,000 on PyPI

sqlalchemy-databricks

Provides a SQLAlchemy dialect that connects to…

permissive · top 15,000 on PyPI

sqlalchemy-dremio

Provides a SQLAlchemy dialect to query Dremio…

permissive · top 15,000 on PyPI