Provides a parser for trino queries
Project description
The package provides a parser for trino queries.
Install
To install the package run:
pip install trino-query-parser
Example
>>> from trino_query_parser import parse_statement
>>> parse_statement('select * from x.y')
[['SELECT', '*', 'FROM', ['X', '.', 'Y']], '<EOF>']
Details
trino-query-parser uses trino antlr4 grammar to generate python parser code.
If you care about specific version of trino, install the corresponding version of trino-query-parser.
For example, for trino-405 run:
pip install trino-query-parser~=0.405.0
If there is no such version, feel free to open an issue.
Development
To generate antlr4 parser code run:
make generate-code
To install development dependencies run:
pip install -e .[test]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trino_query_parser-0.422.7-py3-none-any.whl.
File metadata
- Download URL: trino_query_parser-0.422.7-py3-none-any.whl
- Upload date:
- Size: 149.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bf72a5ca68290ba6fe59ad9212169e4a4742f2718662f2cd2a6e35d7598096c
|
|
| MD5 |
4fa8543e76292fe9d5bf7c77fd6c298b
|
|
| BLAKE2b-256 |
e785b105e71b69be56df0202cc65f1411e3cbac7ba4d1db982d0e2246c758188
|