Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/messense/py-promql-parser
PromQL parser for Python
https://github.com/messense/py-promql-parser
Last synced: 12 days ago
JSON representation
PromQL parser for Python
- Host: GitHub
- URL: https://github.com/messense/py-promql-parser
- Owner: messense
- License: mit
- Created: 2023-02-01T11:48:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T01:25:07.000Z (6 months ago)
- Last Synced: 2024-05-22T13:04:56.081Z (6 months ago)
- Language: Rust
- Size: 83 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-promql-parser
![CI](https://github.com/messense/py-promql-parser/workflows/CI/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/promql-parser.svg)](https://pypi.org/project/promql-parser)[promql-parser](https://github.com/GreptimeTeam/promql-parser) Python binding, a PromQL parser for Python.
## Installation
```bash
pip install promql-parser
```## Usage
```python
import promql_parserast = 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](./LICENSE) file.