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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

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

Uploaded Python 3

File details

Details for the file pygments-promql-0.0.1.tar.gz.

File metadata

  • Download URL: pygments-promql-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for pygments-promql-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6ba4f8c3ff765bfc8664ff444d7358bc7c4344724d48ac848ff14446c5ce637b
MD5 d8c5b96b40e4184a587f088d3e182b18
BLAKE2b-256 420ce3631521c1f39fc5f579769bc335c410ef9c9ef025b77cad32b1135d66e4

See more details on using hashes here.

File details

Details for the file pygments_promql-0.0.1-py3.6.egg.

File metadata

  • Download URL: pygments_promql-0.0.1-py3.6.egg
  • Upload date:
  • Size: 4.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for pygments_promql-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 f103acac45c765f21a50990b61bb3ed558c482539bd92dbd705224878eb6b5ca
MD5 27aae5cf55d930d047800ee5c7d006ea
BLAKE2b-256 768c559fa77359f0455b7e1ce1dfaf7a9f83620160cb68d6eb04e2bc0c7df8af

See more details on using hashes here.

File details

Details for the file pygments_promql-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygments_promql-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for pygments_promql-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d07be354212b2c4ba28ba41b442cc15de012446b3963c4589a0c9bc0323b6b1
MD5 0a78c5ac2e1212fe5c767307926f5457
BLAKE2b-256 00373f67e6487599cdaaa020e99e8a857616392f8162b79e5710830e212e5af8

See more details on using hashes here.

Supported by

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