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.3.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distributions

promql_parser-0.3.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp312-none-win_amd64.whl (995.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

promql_parser-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp311-none-win_amd64.whl (995.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.5 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.3.3-cp310-none-win_amd64.whl (995.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.5 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.3.3-cp39-none-win_amd64.whl (995.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.5 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.3.3-cp38-none-win_amd64.whl (995.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

promql_parser-0.3.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.5 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.3.3-cp37-none-win_amd64.whl (995.2 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

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

promql_parser-0.3.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.5 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.3.3.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.3.3.tar.gz
Algorithm Hash digest
SHA256 149126d8107d40b63674941c59ad64fb6c8e611d58c336301912f6de31c622e8
MD5 287745bbf75f7be72d4dc23bdb90e00c
BLAKE2b-256 dd5a088dd728c3f930d954e08237721fd2b2b6180b41bca24e8f72693a6fed56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d37a3dee75e920f8af42ea0e76b3f6d886eb5782fa8ca4432cfc446c7479b7e5
MD5 322430e5a81148d748ed13a28514f6b7
BLAKE2b-256 d2664181b2fff8bef331f10439c800de9477d470c5d79bb15e2d94cb168e78bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19a2997b81ff02fb38a99e7d5e49d0c5988284917f0fa3992ef7df91df307ceb
MD5 912299f0b19ae1526dc4c80c0f803a4a
BLAKE2b-256 feee4798bdd4d404267c214fb2d474c6e36d695c2b77bce212655ea20eaf272f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4afd89b7bc091e9664f5382d570c6387476be822b5dfa8627b51eea6cfce9d1f
MD5 88f6b17171992ca0266abaf7d9af1b2e
BLAKE2b-256 6b09c64411d0a9a36e8f06afe5521122a1026e0a0330aba8949510b9e47dcde2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 551072f2db193270a8ae4360c192f2943865fb0c75a309b27779aba9ac406b21
MD5 c277db464027168e3d91a7823c1c0421
BLAKE2b-256 890ffeda74bae7cda0f5496a13d3fcb1c3a10c1ce9c8de7c80ae45720f5e5401

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 da2ac5120b323101c135ac44666234761529c1a21ac06c543d475652be215c9b
MD5 46e0dce7c24eda47ee2d50cc8bb8853f
BLAKE2b-256 efd56306cba624562724500a3536c61a5764df62cef3a4559ed605f081d330a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 270bfdad1780578e7ce9514ee33e8419b81c6660de8d0a14ba7cc78a6067bc75
MD5 46e49e9eb4ff4ec2ef820eced4c4eca4
BLAKE2b-256 62f94954406a42f6cc8fc6d32113bfa8f1885785989d34207e160133c0290adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 28b573580d3d8166228b0051a48bbb5d103d1df06c8816c0fc83d24003024fda
MD5 faba2a3ef2960974138b182f168c9c4c
BLAKE2b-256 5c87665907984cdf8294bc966c2a2080880870062e59de7d74005b942f73b834

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ba19b3a42903ebfc005cfdc45ef8744845f1c092befa8fa22f8d81d09f43049
MD5 eabcbc76c1ad65ab1dbf3e86fe7d1a80
BLAKE2b-256 49f015cfdb18debf4484d61cb8ed7234635981b34b4e8655ce7b3970a995e08b

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-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.3.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 46efaf6d8a7cc0898f9dcb48ab3684235f15a3f183c0d8cae790fab08b88d843
MD5 e6fc5073238a2ecbe076e4a4c0c2e920
BLAKE2b-256 2eac7e549f31fe3e245a8e23bd5785e767c4b0153ca44cbf0b15ef5b3f1ba1a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 38d91a13a6d57acec95ce6f1800e2ceb2d49ca85409fb72b7fb4965752d3a1b5
MD5 3796fa101ba50f627d2241845d558730
BLAKE2b-256 8a9e17b0b4aba5f95b3d5ce625d9807c1f1f29d3e4cf42e2137cefdb1fc11951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e875f4717975bfeb603584297c105d0781eb5b5ebc2bd354b03c072a10f172c
MD5 18b89a0567c264e39bb8b77fb1ebe28d
BLAKE2b-256 017e2e0f13c1b51a1a9a27a871fcf32db2f6766a0d74638e48352082e092e3d9

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-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.3.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6275f211e881bde6657729e0a20690539fd0e7ece419e5cb4038ae8739700006
MD5 9095e42c8a0636aeef5ca94723c7755e
BLAKE2b-256 4836a6c2b22142bf24963c979f8e1a3fd8cc92f6b3f8e1c74a28b2a06da31ba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 12481934664159d4c167a5825378498e0c9e2b613b07331542c8724d42ec0211
MD5 aea60e52c2d4b43dffbc97de7c61e7c3
BLAKE2b-256 738f4c18ad46e251d8892a0905030803786001808af8b48869cbfd00bae8f958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81c9e7449ff3e8bdb380a16350b79ef70215d10b66b05b67de0792268047e09b
MD5 b37e5f4871d8f2abf52abbc802a6cd34
BLAKE2b-256 264ec29eb9addc8873ee82f1194decc65d843a607dbb675b33a0f7041930bb52

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-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.3.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f6c366ecd6319aa0d2fddb42971541e7bed758c01191e5c2bca231f156b1440c
MD5 49ca89469c131eeb3139eab9711a5788
BLAKE2b-256 b3cb40af82b2e2d1cdfa2077f5ab1f7c8304530e6103f53abd933336af10e44b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 eabb70e40ce27416b4e7bb4b0e1c261b3c6bfcd3c6c16287d0eb279f997f6c98
MD5 03a6d238e3585e15a9db2c8e8dcddcb1
BLAKE2b-256 e8ededd552ef251d494476d216d7e0d829a9c0a59a4dc422d196c65240485056

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f85b73ae578db6aedbc8bec7a1511b01ae468b52045cc92afed655e8141ad99d
MD5 14043f1e6b652ba997f6a83de533d227
BLAKE2b-256 549619847f71bec1ba2c83b89250a0b4a253da725d797e463c9c2213eef6e6f8

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-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.3.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 51c855eda3d80420490ad8970efe61d3129069b58a751935b8c5a71ef27a4177
MD5 95143065bdbf46e91f782a5d24984367
BLAKE2b-256 afd4596a954c153cef9a5836b98b056139d19da673575e3467b85315fce137d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 f0ea036a3ea72c68830db11cf41402b8004104013f44d6536c12d83c34b94445
MD5 bb3afcb5cdca347ad140d7d113393477
BLAKE2b-256 27c48c5fac701708d4060f5d7ec5b7cdeed8e318887c3daa452ced8edc6eabcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6040d991d57e07c1705426529ba58ca609550d2db963483174a2a28fd214a899
MD5 eafc463947e90504998bd0dbc4aa702c
BLAKE2b-256 1929e2018d80e713a162a9e964c788cc8dc68cfaa6e71c7a30463bffd00f58b5

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.3-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.3.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ec8ebe2a1029441534d9a8c20ca8b69d5300ecbe5f73c337dfbc1559bb739f40
MD5 d0fb7f4eaa8943ffab869050ac6087a6
BLAKE2b-256 40d44291a10b67bcd7d8702fa86a86c028ba8984dac1a6e959c2cec60674946c

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