sqlalchemy-trino
Trino dialect for SQLAlchemy
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release May 2022, archived repository) and its functionality has been merged into the upstream trino project. New projects should use the trino package's built-in SQLAlchemy support instead. Only consider installing if you are maintaining legacy code that already depends on it and cannot migrate to the upstream solution.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Trino version 352 or higher; when using username and password, connection is automatically over TLS.
- Installation is straightforward with low friction, but the package is abandoned as of May 2022 and no longer maintained—its functionality has been merged into the upstream trino project.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), so you may use, modify, and distribute it freely with minimal restrictions.
last release 2022-05-05 (1562 days) · last repo commit 2022-05-05 · 25 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 606,921 downloads/mo, #5,787 on PyPI
Alternatives
Verify before relying
from sqlalchemy.engine import create_engine
from trino.auth import JWTAuthentication
engine = create_engine(
'trino://@:/',
connect_args={'auth': JWTAuthentication('a-jwt-token')},
)- Whether the upstream trino package now provides equivalent SQLAlchemy dialect support that should be preferred.
- Current compatibility with modern SQLAlchemy versions and Trino releases beyond version 352.
What it is and what it does
sqlalchemy-trino is a SQLAlchemy dialect that allows you to connect to and query Trino databases using SQLAlchemy's ORM and SQL expression language. It translates SQLAlchemy operations into Trino-compatible SQL and handles connection management, authentication (including JWT and user impersonation), and result retrieval. The package depends only on the trino runtime library.
The package is now deprecated and archived. Its code was donated and merged into the upstream trino project, so active development has ceased. If you are starting a new project, the upstream project is the recommended source for Trino dialect support rather than this standalone package.
Use it for
- Build a Python application that queries Trino using SQLAlchemy ORM models instead of raw SQL.
- Migrate data from Trino to pandas DataFrames using SQLAlchemy's read_sql interface.
- Write Trino data to tables from pandas DataFrames using SQLAlchemy's to_sql method.
- Authenticate to Trino with JWT tokens or user impersonation via SQLAlchemy connection strings.
- Use SQLAlchemy's query builder to construct dynamic Trino queries without writing raw SQL.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release May 2022, archived repository) and its functionality has been merged into the upstream trino project. New projects should use the trino package's built-in SQLAlchemy support instead. Only consider installing if you are maintaining legacy code that already depends on it and cannot migrate to the upstream solution.
Install
sqlalchemy-trino on PyPI
Before you install
Installation is straightforward with low friction, but the package is abandoned as of May 2022 and no longer maintained—its functionality has been merged into the upstream trino project.
Requires Trino version 352 or higher; when using username and password, connection is automatically over TLS.
License in practice
Licensed under Apache 2.0 (permissive), so you may use, modify, and distribute it freely with minimal restrictions.
Quickstart
from sqlalchemy.engine import create_engine
from trino.auth import JWTAuthentication
engine = create_engine(
'trino://@:/',
connect_args={'auth': JWTAuthentication('a-jwt-token')},
)
Verify before relying
- Whether the upstream trino package now provides equivalent SQLAlchemy dialect support that should be preferred.
- Current compatibility with modern SQLAlchemy versions and Trino releases beyond version 352.
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetrino |
| Maintenance | Abandoned 1,562 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 606,921 / month, #5,787 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: DatabaseTopic :: Database :: Front-Ends |
Evidence: sqlalchemy_trino-0.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sqlalchemy trino dialect”
- sqlalchemy-trinoProvides a SQLAlchemy dialect for connecting to and querying Trino…
- PyHivePyHive provides DB-API and SQLAlchemy interfaces to query Presto,…
- trinoPython client library for Trino, a distributed SQL engine, providing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also databricks-sqlalchemy · trino · duckdb-engine · pybigquery · sqlalchemy-bigquery · sqlalchemy-databricks · sqlalchemy-jdbcapi · PyHive · sqlalchemy-solr · snowflake-sqlalchemy