--- id: sqlalchemy-trino version: "0.5.0" license: Apache 2.0 license_treatment: permissive maintenance: abandoned --- # sqlalchemy-trino — Trino dialect for SQLAlchemy License: permissive · Maintenance: abandoned · Downloads: 606.9K/mo ## 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 above — verify before relying. Provides a SQLAlchemy dialect for connecting to and querying Trino databases, enabling ORM and SQL expression support for Trino as a backend. 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 pip install sqlalchemy-trino uv add sqlalchemy-trino poetry add sqlalchemy-trino ## Installing sqlalchemy-trino 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. 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')}, ) Requires Trino version 352 or higher; when using username and password, connection is automatically over TLS. 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_current - Install friction: low - Maintenance: abandoned - Downloads: 606.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sqlalchemy trino dialect, trino database connection, sqlalchemy trino driver, trino sql queries, trino orm integration, deprecated, archived [View on SkillFed](https://skillfed.io/packages/sqlalchemy-trino) · [View on PyPI](https://pypi.org/project/sqlalchemy-trino/)