{"id":20277582,"url":"https://github.com/grihabor/trino-query-parser","last_synced_at":"2026-03-19T15:03:09.318Z","repository":{"id":125341267,"uuid":"591811807","full_name":"grihabor/trino-query-parser","owner":"grihabor","description":"Provides a parser for trino queries","archived":false,"fork":false,"pushed_at":"2023-07-23T16:04:22.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T06:25:03.556Z","etag":null,"topics":["presto","presto-parser","sql","trino","trino-parser"],"latest_commit_sha":null,"homepage":"","language":"ANTLR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grihabor.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-21T23:56:49.000Z","updated_at":"2026-02-05T17:41:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"a711f8f4-7925-4318-811a-36eaab241a58","html_url":"https://github.com/grihabor/trino-query-parser","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/grihabor/trino-query-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grihabor%2Ftrino-query-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grihabor%2Ftrino-query-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grihabor%2Ftrino-query-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grihabor%2Ftrino-query-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grihabor","download_url":"https://codeload.github.com/grihabor/trino-query-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grihabor%2Ftrino-query-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30710554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-19T05:29:31.190Z","status":"ssl_error","status_checked_at":"2026-03-19T05:28:25.821Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["presto","presto-parser","sql","trino","trino-parser"],"created_at":"2024-11-14T13:19:04.133Z","updated_at":"2026-03-19T15:03:09.286Z","avatar_url":"https://github.com/grihabor.png","language":"ANTLR","funding_links":[],"categories":[],"sub_categories":[],"readme":"trino-query-parser\n==================\n\n|pypi| |python|\n\n.. |pypi| image:: https://img.shields.io/pypi/v/trino-query-parser\n  :alt: PyPI\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/trino-query-parser\n  :alt: PyPI - Python Version\n\nThe package provides a parser for trino queries.\n\nInstall\n-------\n\nTo install the package run:\n\n.. code-block:: bash\n\n    pip install trino-query-parser\n\nExample\n-------\n\n.. code-block:: python3\n\n    \u003e\u003e\u003e from trino_query_parser import parse_statement\n    \u003e\u003e\u003e parse_statement('select * from x.y')\n    [['SELECT', '*', 'FROM', ['X', '.', 'Y']], '\u003cEOF\u003e']\n\nDetails\n-------\n\n:code:`trino-query-parser` uses `trino antlr4 grammar \u003chttps://raw.githubusercontent.com/trinodb/trino/405/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4\u003e`_ to generate python parser code.\n\nIf you care about specific version of :code:`trino`, install the corresponding version of :code:`trino-query-parser`.\n\nFor example, for :code:`trino-405` run:\n\n.. code-block:: bash\n\n    pip install trino-query-parser~=0.405.0\n\nIf there is no such version, feel free to open an issue.\n\n.. warning::\n\n    Be careful, API is not stable, it might change in new versions\n\nDevelopment\n-----------\n\nTo generate antlr4 parser code run:\n\n.. code-block:: bash\n\n    make generate-code\n\nTo install development dependencies run:\n\n.. code-block:: bash\n\n    pip install -e .[test]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrihabor%2Ftrino-query-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrihabor%2Ftrino-query-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrihabor%2Ftrino-query-parser/lists"}