trino
Client for the Trino distributed SQL Engine
Install
trino on PyPI
pip
pip install trinouv
uv add trinopoetry
poetry add trinoPackage facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — lz4, orjson, python-dateutil, pytz, requests, tzlocal, zstandard |
| Maintenance | actively maintained — 45 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: trino-0.338.0-py3-none-any.whl
About trino
from the package's own PyPI description — quoted content, verbatim
Trino Python client
Client for Trino, a distributed SQL engine for interactive and batch big data processing. Provides a low-level client and a DBAPI 2.0 implementation and a SQLAlchemy adapter. It supports Python>=3.9 and PyPy.
Build Status (image) Trino Slack (image) Trino: The Definitive Guide book download (image)
Development
See DEVELOPMENT for information about code style, development process, and guidelines.
See CONTRIBUTING for contribution requirements.
Usage
The Python Database API (DBAPI)
Installation
$ pip install trino
Quick Start
Use the DBAPI interface to query Trino:
if host is a valid...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
A Python client for Trino, a distributed SQL engine, offering DBAPI 2.0 and SQLAlchemy interfaces for querying big data clusters.
Low friction install with seven runtime dependencies (lz4, orjson, python-dateutil, pytz, requests, tzlocal, zstandard). Active maintenance with a release 45 days ago and regular commits; 433 GitHub stars.
Apache 2.0 permissive license allows broad use, modification, and distribution with minimal restrictions—suitable for commercial and proprietary projects.
Usage
pip install trino
from trino.dbapi import connect
conn = connect(
host="localhost",
port=8080,
user="username",
catalog="system",
schema="runtime"
)
cur = conn.cursor()
cur.execute("SELECT * FROM system.runtime.nodes")
rows = cur.fetchall()
Requires Python >=3.9; a running Trino server is needed to connect to.
Verdict: Actively maintained, top-1000 popular package with no known vulnerabilities and permissive licensing. Low install friction and broad Python version support (3.9–3.13, PyPy) make it a solid choice for Trino connectivity. Suitable for both DBAPI and SQLAlchemy workflows.
Needs verification
- Whether the SQLAlchemy adapter requires Trino server >=351 as a hard constraint or merely recommended.
- Performance characteristics and connection pooling behavior under high-concurrency workloads.
- Support status for authentication methods beyond those documented (e.g., custom SASL mechanisms).
Similar packages
permissive · top 1,000 on PyPI
pinotdbpermissive · top 1,000 on PyPI
pyspnegopermissive · top 1,000 on PyPI
SQLAlchemypermissive · top 100 on PyPI
scramppermissive · top 1,000 on PyPI
snowflake-sqlalchemypermissive · top 1,000 on PyPI
sqlalchemy-bigquerypermissive · top 1,000 on PyPI
beautifulsoup4permissive · top 100 on PyPI
databricks-sql-connectorpermissive · top 1,000 on PyPI
keyringpermissive · top 1,000 on PyPI