Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 632 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 632 Bytes

py-promql-parser

CI PyPI

promql-parser Python binding, a PromQL parser for Python.

Installation

pip install promql-parser

Usage

import promql_parser

ast = promql_parser.parse('prometheus_http_requests_total{code="200", job="prometheus"}')
print(ast)

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.