Skip to main content

A PromQL lexer for Pygments

Project description

pygments-promql

A PromQL lexer for Pygments.

Installation

Using pip

Run:

pip install pygments-promql

From source code

If you wan to test, play or contribute to this repo:

python setup.py install

Usage

Showing colorized output in a terminal:

pygmentize tests/example.promql

Or to generate a PNG file:

pygmentize -f png -O "line_numbers=False" -o tests/example.png tests/example.promql

promql

Testing

pip install -r requirements.txt
pytest tests/ -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments-promql-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distributions

pygments_promql-0.0.1-py3.6.egg (4.5 kB view hashes)

Uploaded Source

pygments_promql-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page