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

Uploaded Source

Built Distributions

promql_parser-0.3.2-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.2-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.2-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.2-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.2-cp312-none-win_amd64.whl (994.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

promql_parser-0.3.2-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.2-cp312-cp312-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 MB view details)

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

promql_parser-0.3.2-cp311-none-win_amd64.whl (994.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.3.2-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.2-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 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.2-cp310-none-win_amd64.whl (994.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.3.2-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.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 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.2-cp39-none-win_amd64.whl (994.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.3.2-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.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 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.2-cp38-none-win_amd64.whl (994.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.3.2-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.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 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.2-cp37-none-win_amd64.whl (993.9 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.3.2-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.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.4 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.2.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.3.2.tar.gz
Algorithm Hash digest
SHA256 98041df03e59cf312eec37794cdbff581eb35eda4775a0f5aa7c2a004cd84529
MD5 1e6d3cee0cb801eadc86d2dfda8b0601
BLAKE2b-256 bb1a4eebd9230cdc4efa72d9b345bd3da398ae8a19f9bc5985f964156db4d2b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abd1f66b3ac7216c3de3c1c05bd7381dac7d001fc76ff0bfc28b34bb1d5acacd
MD5 8067f5ebce6a77c0cefac32ba7527dc6
BLAKE2b-256 0e290eb43acdbea9c97b1104b961f6dbfbf2d6bca7140a6759713e0ecbbbcc75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c58fdaa21d53eb58754e66d06ea4d416859b07752e6c44c8f3c0ece734a7815
MD5 4079d229c864c2e734e8fa20c452ebee
BLAKE2b-256 75d48fbb3c6cec4421feeb00a5b964491db15c3bee2908c0d3540a2093ead0c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8865f8de573504576e058cbf67f5d069aa6f647336ddc5744f2e79415b678c4
MD5 be2f7f5620ad8bc83743ca2c52f1c20f
BLAKE2b-256 7d70814eabfb1d22adce47bb55c2433e95a012b2d9151b4db9ae8eb56324fbbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88016ba43b6312db1f4f3f97c89f19494a75209c9628a80acf0931c2c358c91a
MD5 ac7b1ba06cf05652852a4702ab6d0f49
BLAKE2b-256 1f7928225bcfd8edbdb9eca7e35312f66d5e55328e4abbb4fc6abd58cacf295d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 2e43ffa206f6481aea53d46d3243490fd2bd562272e860f67e76fe71169e965e
MD5 83944941a6ad9ea1e22b7819e3d06564
BLAKE2b-256 52a1ee8a46d55559ec53a2711b895c3da7429de0654af5860d1b1a2e0bf6242d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b8907a918b919cf7b311826b3f0cb10fd9247aa43103cbf484c314b6e68b02d
MD5 90e788e29ee73961c52f10323951274f
BLAKE2b-256 795e10679ce80c110871f73f8032b221e900452e017b8044784b9605ce115e33

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-cp312-cp312-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp312-cp312-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 13050550920892d12f2e8ee8824efa995fcfac5c4d6f28cc5f5b055d66397b7d
MD5 ff45c290d5525193aa75166d9d6a0195
BLAKE2b-256 e7f31ae177042e3aacdee5214a4014ca19d6390ee4eb942f90fa575b094259b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 97effc75f533d7018cca0bc9d48aaf1a737f2d4a9890bf6c4615ab19f8177970
MD5 f5c6a356e2d0266b25dd8937d06d004a
BLAKE2b-256 626df3398a3ee57da33ee2ca1eae40a0303f6bcf5c2a8515f57a0f475f06665d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99d7637bff8834e5f3f7a966b59b862fb91d2efc8f81700fe12c291fd16e12e2
MD5 c9d291f276557c3098a42eee4fd39144
BLAKE2b-256 96160b42991096062b5701dda14e79c737b7de15f9d4a6ba3c43928c0483fbbb

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-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.2-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4ca684ddded76a76e6eaeb2d2ae3665552c4660dc1526c553aced3a3232f92ae
MD5 b5ff330e09edffba10de4a5f837bb396
BLAKE2b-256 27d9312fa548d4fe6cf6bd406be86f44db31f55863055a81cb79bb7d1a3c3f42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 a2bf1b5f327adc8cd60992b0296c66ab9edd3a49891f5aeee3504fda6f14005d
MD5 446363001e9484ed94c5729169879291
BLAKE2b-256 7c1f1c4b7d37fcb459a9da90ff2f1ebe4512b8b32df9cda1e23da1e74ea897fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f8b53da191631c29c8e3d6473fec94259053d25eb5334f0ffe0ffa02bbec05c
MD5 de58a1a5b3bf7bc8820f8ac1804c61f4
BLAKE2b-256 07a4c4bf0f5dcf10a7e452268d439439d6a905c495c6f2868ab96bcd36d16603

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-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.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ad8950cc4cdc756f4268452a43584808cce189cbb42d36d1e0c111ed30417abb
MD5 06c63b51da32ebf3ffd92c486c134544
BLAKE2b-256 b81fbb3ef84926d62a07d7a2c97871743f42f78d892a634b70597ec7416dc3c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 02ce7fbba14575ac958f7210c0399ede50bee3d8609f2b458a276b31926ca560
MD5 1b221c7b8e95edc26e3a61383600dc39
BLAKE2b-256 420a6735415c8b4893f3d3278d0e4232fcdc7fac067d96a225fd02b61e415fc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15a7cfbd2a4d5a02ad761b0325ef8c8ae4c4cdf24cec991196011aab4844ad4a
MD5 f62b23ebd280d4463aa2abee0d46a520
BLAKE2b-256 667121670c8d8370ba4381543454c6e93f823ca4cf8755991007d2c071a33926

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-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.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 48ca668f2e69e8f8766ae8e784b81dc6873bda07f1cec2f07f804a9182109d4b
MD5 c617da37f8ad19c7d455b7bb85184970
BLAKE2b-256 51499877823af1891ea68f65f0a294de5ec3a37e281294aa7dfed8340a30202d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 881d086e6e747be514f3188ba9798865361e0043bb2c9efbb286b4e60301dab7
MD5 f01da6e00ded87a1ca5828ddcf46b80e
BLAKE2b-256 ba4310046cde91b14e991d0e81ef7c738a2f573dc4a85219df6a983193cdc1e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8cbe5cb702d1dd06274d8ab8e20a1dff07feaef5bfbd50825d89784115169cd
MD5 71ac90a22e746f73ca086ca2bcceb156
BLAKE2b-256 ee8cb1acfd01ff479c6faa9ae54dd94c3d01b6684c2fd1d1bb2ee87cb9e824b9

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-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.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4294ea09847580113d46bf162e72c1ec26682311a23af03205c1e61658caba52
MD5 148e36bef67e903437b86943c2d7061c
BLAKE2b-256 f9fd8d4778c37b5e2656f55df5de85fe6f5870194e65b6adf740f6f1d235143e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 92d07c485c26d4b28051583dd93bbf52eeeb198c5b458a2dfb8ab7f4a5b77720
MD5 8c87f25ce754cae6c8171fd22d1a1d9f
BLAKE2b-256 be7ccd1211a0c19bd4ad57c5582be2e2c66fd894cba4bbdf9870f8758619b098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b567403295f7c4c58e34d395ad3464c859e709c210145331b1f2b0ecfc1d869e
MD5 1d7af2ea7d32aefbfa6f5300e13bcdd9
BLAKE2b-256 9612315e12589134d9f6944497309ee2e917a2ffa333b70a53a097ec20b4f08a

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.2-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.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f3a5b96835a658bd05e418bd361d610c99969fc44df9520dc3e4e14ce5d68017
MD5 710fd100cf7753197b62b6a3da0e02d8
BLAKE2b-256 22bffe2953c462076bc6f320dd4ad735dcfd3cf264571d8488e04f13ac72dae2

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