promql-parser

PromQL Parser for Python


License
MIT
Install
pip install promql-parser==0.3.3

Documentation

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.