teradatasql
Teradata SQL Driver for Python
What it is and what it does
teradatasql is the official Teradata SQL Driver for Python, implementing the PEP-249 database API specification. It allows Python applications to establish connections to Teradata Database systems and execute SQL queries, handling authentication, query execution, and result retrieval through a standard database interface.
The driver depends on pycryptodome, though that dependency is only required for running the included TJEncryptPassword.py sample program; the driver core does not use it. The package is actively maintained, supports modern Python versions (3.7 through 3.11), and runs on Windows, macOS, and Linux across multiple processor architectures (x64 Intel/AMD, ARM, and Power). Installation is straightforward via pip, with optional dependency skipping available if you do not need the sample encryption utility.
Use it for:
- Connect Python applications to Teradata data warehouses for ETL, reporting, or analytics workflows.
- Execute parameterized SQL queries and retrieve results in a standard Python database interface.
- Migrate or integrate legacy Teradata systems with modern Python data pipelines.
- Encrypt database passwords for secure credential management using the bundled TJEncryptPassword utility.
- Build cross-platform Python services that query Teradata on Windows, macOS, or Linux infrastructure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A PEP-249 compliant Python database driver that enables applications to connect to and query Teradata Database systems.
Yes, if you need to connect Python to a Teradata Database. The driver is actively maintained, has low install friction, supports current Python versions, and implements the standard PEP-249 interface. However, review the proprietary Teradata License Agreement before use in commercial or open-source redistribution contexts, and note that beta features carry no functional guarantees.
Install
teradatasql on PyPI
pip
pip install teradatasqluv
uv add teradatasqlpoetry
poetry add teradatasqlInstalling teradatasql
Before you install
Low install friction; single runtime dependency (pycryptodome) is optional for core driver functionality. Active maintenance with a release 2 days old. Supports Python 3.7 through 3.11 on Windows, macOS, and Linux across multiple processor architectures.
License in practice
Licensed under Teradata License Agreement (proprietary, not SPDX-identified). License treatment is unclear; review the LICENSE file bundled with installation before use in commercial or redistributed contexts. Beta features are provided as-is without functional guarantees.
Quickstart
pip install teradatasql
import teradatasql
connection = teradatasql.connect(host='teradata-host', user='username', password='password')
cursor = connection.cursor()
cursor.execute('SELECT * FROM table')
results = cursor.fetchall()
Requires 64-bit Python 3.7 or later; 32-bit Python is not supported. Teradata Database server must be accessible at the specified host.
Verify before relying
- Whether the proprietary Teradata License Agreement permits use in open-source or commercial projects without additional licensing.
- Performance characteristics and connection pooling capabilities compared to other Teradata client libraries.
- Whether beta/preview features are documented and which features carry that designation.
Package facts
| License | Teradata License Agreement (unclear) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pycryptodome |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 10,430,380/month — #1,454 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: teradatasql-20.0.0.65-py3-none-any.whl
Keywords: Teradata
Tags
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
psycopg2-binarypsycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
alembicAlembic generates and manages database schema…
permissive · top 1,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
psycopgPsycopg 3 is a PostgreSQL database adapter for…
copyleft · top 1,000 on PyPI
teradataProvides Python bindings to execute SQL scripts…
permissive · top 15,000 on PyPI
teradatasqlalchemyProvides a SQLAlchemy dialect that enables…
unclear · top 5,000 on PyPI
teradatamlteradataml provides Python access to analytic…
unclear · top 15,000 on PyPI
mysql-connector-python-rfA pure-Python MySQL driver that implements the…
copyleft · top 15,000 on PyPI
hdbcliA PEP 249-compliant Python database driver for…
unclear · top 5,000 on PyPI
pymssqlpymssql provides a Python DB-API interface to…
copyleft · top 1,000 on PyPI
apache-airflow-providers-teradataIntegrates Apache Airflow with Teradata…
permissive · top 15,000 on PyPI
mariadbMariaDB Connector/Python provides a DB API…
copyleft · top 15,000 on PyPI
pyodbcpyodbc provides Python access to ODBC databases…
permissive · top 1,000 on PyPI
ibm-dbPython driver for connecting to IBM Db2 for LUW…
permissive · top 5,000 on PyPI