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

Uploaded Source

Built Distributions

promql_parser-0.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-cp311-none-win_amd64.whl (764.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.9 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.1.0-cp310-none-win_amd64.whl (764.4 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.9 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.1.0-cp39-none-win_amd64.whl (764.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.9 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.1.0-cp38-none-win_amd64.whl (764.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.9 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.1.0-cp37-none-win_amd64.whl (764.6 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

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

promql_parser-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.9 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.1.0.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ffd229be5616d1024896f22a2bc6fd47a55f3493529fc8c676bf33f1266d4f7
MD5 9cb828a49f584ab75377dacc0f79825b
BLAKE2b-256 289cdad06368965889aa773e1113cae08c6112225b11c1ede8d5ea6fbbbd41f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e4b35833a796a382c60936eaf1d3c3d9dcb1005b21e8ce4afe97881f65d13f1
MD5 62b19068d952c7bb88f33de4310750ed
BLAKE2b-256 29a425a9f7aa4043534086250350e0959f841e04d91f7e6b6b3551d8df467b51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f0f751e4224ec8f6f421eea79cfdce3aa1cb95239a3a04a4437a324085a5af3
MD5 d8c6d6b1a2bf53cfe722923c420d686e
BLAKE2b-256 ec06fb1e1af65db41c91550859e11f6bff50869477b964312499e28b8b76faec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f03dc60424d9136ad786579d7ae01fdc170ed368cea9943a143a4e44a8036a9
MD5 7a82ef96a09ac3e08fb6809745be1ef9
BLAKE2b-256 01a1e38a9086cba0b11f1ad1374ed38ac5a140e7616c1baad9d7d78060f771ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 c4f73b4bdfe18713528107cc01bae68ae43f46147efdb7dc232b3f10522cd2d7
MD5 04d1404761f7ac46630360e89e6c9f95
BLAKE2b-256 52a05b123c2852888b309941040bc05b9b8715d3fc19cbb3af04cf36adee8c3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31360a5695ec8f1c64172a65c37561565565c7ac974470b972b929e03f2bea91
MD5 d6a3a9d4223a8e5a228851ec7e8ad7eb
BLAKE2b-256 2e6a15cc2c514f441c267f468db6f6c6f967bf5e28ed9243f0a11d4b8be46a1e

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fba35381b07dd212449af1bc5229722e865543ad3bf13bf561747a67e4866906
MD5 0463c2be9e6f9fd87e168eecbbb73425
BLAKE2b-256 a22bf5abbddb14b4d49dd2e54f2a930b706f618377530479115ce3d27ee9a420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 27ac913401e451ecdc088c67e1130ac85290afeb9d8f73276cb29df83e28d561
MD5 b2eacbad0aa6d90d390693a099bab079
BLAKE2b-256 6bf83f8cacbf189e0a17faa268d31becaa7e0655b3a7c840a4282109e94aa455

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e727ee822c6d79735869e4d52a7bdd1ffabe755f906c77083d019e714555b5b
MD5 f7e19a6fff1efd702e2cc62570ef1e0a
BLAKE2b-256 04eacbf105678105fa55b3b6cca569dd92aa461d87c3dbfaf0f22c2b70d44c92

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 08990806e3d641ff6164f0ff0affcdae9d989f832dce7de00cd7a0ae34a00fbc
MD5 0b28499dc46c48b888208f0121257631
BLAKE2b-256 74e8ae7d0c50855f0c349b0a39b180083c66c0fcd3a44651a0ce761421ee562d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ac0342bae750b078b33d56cb41c7d087e447bd249b3a5125c1e8083a1d185085
MD5 7349adc79600e8f68464628172deffcc
BLAKE2b-256 cd44cb1a6f77fc05cc1409389f23442c4591b59c106df4125592f2713feabfe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fdd7325ed2615b3a04c97a802992f9922e88814cb4e6f912bdb35422b8ec457
MD5 830e3884479381f09c832993c09791af
BLAKE2b-256 3500d370e6184fc3abe090a2a9d7a4f842b8bafbad7466cc57736ef67d2dc039

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 92653762030a6c7819936dd12767bf516494e60e84157ede54b682d267d1eff0
MD5 c4a51599006455f391fe518c903024b7
BLAKE2b-256 635a20e46818d372b49a8267315b822110f9242992d0cd4f4acb2ae1afa1d89a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 280698891df770c2a5d8d0c883353a186fa145a55cd30c138e8d1379bae24a82
MD5 b869aa377b2e10986539257020e60b00
BLAKE2b-256 b018c7c36dae97785bad54ceacc17ff9cc57f549d7dda40d796695b2cc9404c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b982f59628d5009652a5f08f427376319de7f78d5f387635e3f5331f745f449a
MD5 9abed653389ce13e1fb37e3c00783dbb
BLAKE2b-256 3a93a1854043f7785ea6d904b9a77d0e221c59029ce88c3022ab263a19651954

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2bf2c39c58d2a0d3daddc5a20d11a222555cbc68c1fa67839aab9f1791c6b25e
MD5 8500553600129a776c66bd1e84599a95
BLAKE2b-256 29dbb0cd093400125ef98f44b4ae0668d7a7dd73176e371544b96a0a1b70dbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 813dad05f198ddecba7e67a3d1f79073f82cfdf6fc1c0b006a96c93e54587cf1
MD5 7b1f72fe964e06b27ec52c632d496c7f
BLAKE2b-256 7b214e2f35f078e1d74d32860ed19f61c4f4db88bad9cec618f66f9603cc4a12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edb204ebeb47c7860b9768f5abb8bba6afe689138953c6aa2e7a30dad3e2d42a
MD5 d8a41639879e014f48bd230147b9d442
BLAKE2b-256 737132fed1e89d45285b60e4379b6a6ceba07ded18d97bef3d3869013512526c

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2f95c192d139e5bc479ad5978b1254f4aae6e4c84839cfeb7a136d56d2fa7a0d
MD5 5dae545effc2329b28b1ecc67594d3d4
BLAKE2b-256 2ce1d1716947a6a546967b9ce7b4f1c21fb7957897b087f4656ec401cfbff4c1

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