Skip to main content

PromQL Parser for Python

Project description

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.

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

promql_parser-0.2.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distributions

promql_parser-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp311-none-win_amd64.whl (943.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

promql_parser-0.2.0-cp310-none-win_amd64.whl (943.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

promql_parser-0.2.0-cp39-none-win_amd64.whl (944.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

promql_parser-0.2.0-cp38-none-win_amd64.whl (943.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

promql_parser-0.2.0-cp37-none-win_amd64.whl (943.7 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

promql_parser-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file promql_parser-0.2.0.tar.gz.

File metadata

  • Download URL: promql_parser-0.2.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.1.0

File hashes

Hashes for promql_parser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73e163b6a6eaac4260ca85d5302199ea0341b530b5f1a3620257b657bface08a
MD5 fd868ef0fa1e362e315f871e2601c34a
BLAKE2b-256 356417142a8f591d7ea5d14cd42db691e2791a2c481e92af3287f77cb34c7067

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f59295442d9fdecc8d61b3a9c3ef431ab8a18684ce0023f9234b566c62622f57
MD5 afd3da74a9f0699cf5a6584c972f2d65
BLAKE2b-256 5bb08a8cf57ba68aca87099c49df6bc5aecc89ea316d974e28050892573e84e3

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a40ff1b847205a526bcef6df223ec2a18aaaa2e657eaf3be05ab94c7a6647128
MD5 1f79eabcf112b1b71fc8706be9ffec65
BLAKE2b-256 02794e9c9fa70b2fff83117fe646a29d915b48fcabbfaa1f26946b7c46815bd6

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b34fba53aae3f1e3604d6d632303e408cc0c36ea6186bbfc564639866099d98a
MD5 d652dc7451132bad4b0c4f01d0b3175e
BLAKE2b-256 2f5160dde1f020205d0c99334464798090e0261f5ec73bce7e5b4052948971c6

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7027506ebdae762f67a19b5e58a54b00466e985279d5936c869257f23c7b7ae
MD5 d67dc3612f265c63943d25bfcf9f147e
BLAKE2b-256 8825f60dc268c15676be0804ec8fa32511a50b6a4323827e0424ae0c7b44d325

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 682282b62b00699ca2aec8e254d6ccb03b5b18d931c9e0daef57a70c63819a42
MD5 783a0a422b490e47e74e37c280637e9a
BLAKE2b-256 20ec50fc0d385d950e1cc0d7115122088eb6ce5a2baa5d2d80c4c715d7f3ec43

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e286a82ea562700b73d21486dd2c028d9a44c1b844aa310f744218470e428ad2
MD5 ebb027289d7e649480e7c5e4d72005f6
BLAKE2b-256 565cccc3df9fbb1dbf7e02e0b19883b99b05c783f9485842df299a24ab5c9c63

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a679b4aa51532b260c238559c9868d38a791313b459703881a92c4fe42d7dd3
MD5 08f90831c425eeaa5de5643e872c754e
BLAKE2b-256 9ff9b04d24338f855732bf1af5ba47b9373df6a563b42047850e376136c655e4

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b6fa2ba95675096bd384c98d18fd5282ec910104432ab9dd04dadb7f5d90bf2c
MD5 b133ff48b93b058b37b1246fd7ab9273
BLAKE2b-256 1cd96d3bc3235365a8db9a20798ee6d07924287bdcc53595e7a0aac2d440afa8

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 0191d0697fef85a482f468bbfacbbabb21ec57f377c46a25ae43c6527a4d1938
MD5 eec68e25231d928d8fee1f48625712db
BLAKE2b-256 28209da5232ea1029b698fcc1f8a967b99e97f2e7165a45073007b91e19853ec

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 461795769875f5f3f6f2e4a5699e1203ae4d4c3ff03f74d0aee9cfd579e777c1
MD5 ebd50bde6efc12e4935980c04619a23a
BLAKE2b-256 2743ca5f023deb826c74c0e89bc9296b37b5a2910b5de0eaf2a040c5442909e2

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0b5095aa2584264ccfe38c005e4c9018498f93ea363506222eaa4b2c603f0117
MD5 e70d2bbef94a8a509bd949b196a054b7
BLAKE2b-256 827c6d1515e2846be0d05e7779cad22d7285456e551b64193c7c139b39d4894d

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a3e8f2a0052bd5906457359fac6d45493458ca46feaa4f482815a5787cb8399
MD5 7587f3eda4e38b791d199d6a33923779
BLAKE2b-256 9b62382d13d4f07f8b0be99a2cc68af0cd79cbaf3f9089fbda73477578e4118d

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72ed7aca8ef38c87826320d27a4694ceb69ff664a0a9b9a158a51271b6c50f67
MD5 3a777c339b18b9356c6d2a3a3c9a2646
BLAKE2b-256 de9067a8e72f5c91bb5735938378b4df9f4c0905734596798f3157b80e6cccdd

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 db3770174ff0dbf1502862d5d8c3e55c09d2b20c8c3e201dfef24534c87f536e
MD5 80f1d249d577a5008de308010c04a288
BLAKE2b-256 aa90453a1174c424e473470e374894355b57056b43ab77450f01afb9beb4a618

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 2400a7d1d927080ffdb256841ef9a8c9afa547da27ba1184e870395cb462db05
MD5 696aba9317f30a375097476a8b5be084
BLAKE2b-256 1403c193074ff572a2004ed54d5b0f937e4a8ab6d20e043bc716eb7037e0753e

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6a883d7adcec4212c655142532eba2a6522acb18a8031ee6f5bbaf8b0333d98
MD5 b9443f4df46e1189d93d409ffe95a3c1
BLAKE2b-256 c0ce32f4b88840273ee3f915213304585bb59c8c4218a30d49b4edf9e3e29b57

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4d9fd604363e9314b5c394c50d00a385cdee97079b8987efc638d5c52a9887e7
MD5 5b4432b801c25e9a8b72a9b589227ea4
BLAKE2b-256 c897e048137c494bc9c0bac7ae98ad93ffac7c16db09a5cb7336ea85f387a8fc

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 727ba414b42dda6b34e101feb154ddb10efc749d1e8f1218bad60c805b4edb41
MD5 e18b82473737712db9990cb0eb36737f
BLAKE2b-256 1097b9f5b2ebd2de1ac3586f3be64521ee644ebac4d0a2d719073a14dc87d5c6

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00641b97ca61ad3fbd4bd8179b89782317b0caa6db7329e91eccc5c7cbafd1c6
MD5 3b214cef9e3e9dfdee3d2edef1421992
BLAKE2b-256 7449013eb7ffc7a0a758519f0a7fdd346294b80e44ad5196fb354cc98908e32e

See more details on using hashes here.

File details

Details for the file promql_parser-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a0245e0c8c85514557fb004b71e97374e26389abbdfced87857a6977d74e6dd5
MD5 ce29c1fd0794ffeec02001498bb64c8f
BLAKE2b-256 f559499d4cc6d52def16be8c323b267dc6d3880c227ccec3534771cd6cd06911

See more details on using hashes here.

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