PromQL Parser in Python
- Tags
{{% alert danger "Retired" %}}
Can be done with py-promql-parser which is probably much easier.
{{% /alert %}}
How difficult it would be to re-use some of the yacc stuff for Prometheus' go parser, and make a proper parser for Python.
Alternatively could use setuptools-golang to build a go library that can be exported and used with Python to make a kind of promtool Python library. This would mostly be useful for things like checking rules or queries for syntax errors.
References
- https://github.com/messense/py-promql-parser
- https://github.com/go-python/gopy
- https://github.com/asottile/setuptools-golang
Links
Tags
- activitypub
- alfred
- bitbar
- caldav
- confluence
- discord
- django
- docker
- esphome
- faust
- fluent-bit
- forgejo
- formatter
- git
- github
- golang
- grafana
- hackathon
- hardware
- hugo
- iOS
- icalendar
- ifttt
- infrastructure
- ios
- ipad
- javascript
- jekyll
- jira
- kafka
- language-server
- line
- linter
- macos
- markdown
- mermaid
- mqtt
- obsidian
- oss
- postgres
- prometheus
- promgen
- python
- rescuetime
- rss
- rust
- s3
- saltstack
- sentry
- slack
- sqlite
- ssh
- swift
- swiftui
- todo
- typescript
- vscode
- webcomponent
- woodpeckerci
- worklog