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

Uploaded Source

Built Distributions

promql_parser-0.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp311-none-win_amd64.whl (832.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.1 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.3-cp310-none-win_amd64.whl (832.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.1 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.3-cp39-none-win_amd64.whl (832.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.1 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.3-cp38-none-win_amd64.whl (832.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

promql_parser-0.1.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.1 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.3-cp37-none-win_amd64.whl (832.4 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

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

promql_parser-0.1.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.1 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.3.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3b617752158b4a502140bfd31e1b65f31718708e51aaba77b81537637f42080d
MD5 d7fed0302998a263c96e040d6c15aa94
BLAKE2b-256 7dea24e36b4d60922de56faef02493942148c8cb20a8ff47058468ba3fc919c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 204fac1ca2ae08907e067ac266a30b80aa1b01d12fc48ab4c4c35de80eb73bf4
MD5 f58ded0202221323c5b32c39e8edbc9f
BLAKE2b-256 fbe5ed726ca581061a99a8055de1d1251145153ae8a45fce418025777c8d2177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce7ba0d2604aa80bcbf702c9b322735d9d37609e8c6ea8a51430341ac7e256ca
MD5 272b2cebba149ac932bfa940fba0963e
BLAKE2b-256 aa482de2b6681d0d34ef3d0b6fb02a50405a3e529ac3976fc9c53c7b4670c5ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74f09e4cec64e3f89fdfe774a8d5d1a10c83ddef4c48dfb7e0bb6ad777afabc4
MD5 a7031da465b80ce6ad50a0f11cd707e5
BLAKE2b-256 984bd6c40a7500ed80c9f185781dcc1502013eb189dcee6b488f2ad33b3e59a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8cda44227c7c235bbec4f53098b6cfa06806670d6ceb7e0ffa4ae38cdcaf3a51
MD5 91b485ec896633f951273d7c6ae159d7
BLAKE2b-256 6d8f6b4bcb0d030e7aacbc3bc73419c397bef2d1dd0921b486d786412909b645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15c6cc44480e94dae76ba7de758775751c10a45a5e0ff23e8001614314a223f3
MD5 3f30bf5ed8b9e9ed2d5d67e1c3cf79b9
BLAKE2b-256 6773ba2e8ee821e851dca20ca5703799c7b594abbe32c925ed069c524f28812f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e055c27214392d83dfec551c315c57605b1d6392dc2f67b66eb5c1297a839e8b
MD5 caabddfa0e0a3746a4eec5d6d089fbe8
BLAKE2b-256 cc7016aad7a95449b02b29545fe984c08822fbb433e4cbf92d8eea6ae91a591c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79469479e6d6c13baec0ba18e237f2361d0d5be93042ab005af4a304bce9d4a9
MD5 d9bfabf714abf0aa634f3c3ce219e034
BLAKE2b-256 c297b3acb7a24f83d39efc4fa93c85d612690b103bcb262ec5b83709ca3504f5

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a0b3da32da26c182f716baf2a4c8ad3922b24b20e6e056b8705cb4241f745c15
MD5 8f320cd8bd07b3301bc945e7053483c7
BLAKE2b-256 0797bb5a20818321b1643809f7b9d81a55da07ad605d59a3d09c78f576c363e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 9dc5e279ccf84270ce4f67cd764a6022afea958a521ad17e16ad5aa9754fdbdb
MD5 3fd08283daa6556c207c09895c118397
BLAKE2b-256 c7f4af09f7177c4e2a3a91558997b9b731fc10988c13e40685da8f7523f21997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 288087c5a90737e140f54177968ae07fc2260dd0507e8dbf305d315e59aa68d8
MD5 eb38e6de3ce874b78a3bbf103e310690
BLAKE2b-256 0b22d699fe3a2c8260c28eccf2e57fc835594fc3c675ed45edcbed9a726d441d

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c6a40525a0fdc39464f348186b79e7ab04f113bc0bd25b8998d874d976e582df
MD5 2a8d9f0fffc3c1dde03a58cd63dc5a46
BLAKE2b-256 04d6bbf880986c21b8838e11af81f638f6b53dde4aca7c7fcfd6b6bb3bc31d8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 e75471996e415b5639e94de25807b89f5a5603580fd87f1acca912f1684be52e
MD5 f0be5b75ce5c8038de58533f9bbfb5d0
BLAKE2b-256 0205e6bded2f83ea1b9f7d0067bd7b8d09957964579a1acb6ecbcd9bdcd7f6f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 245b8bc16bf884e9cd6a972753acb21735e6b54bd384e232cf4f6da42543f335
MD5 e4271ade0aaa4f6dd8b9ba79f3338d97
BLAKE2b-256 094183ae0f0f97c8675462f9f039e8f3870b8b5ee3cba733b9a6c349c44e7844

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f00272a379c4de13878145c742a7d9a6eeeb4aba6df69fbdcf4e09e7b0cc9b27
MD5 e5e6531fde16493f5903c3db3304541b
BLAKE2b-256 c49d173c8f0c474044f081b018ab24910ada07816f2d1ce87afff49f0d8de7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 b14d1450c611b17ac93fa14fde90887c928fcbe7552b1ecd23d0c5e0aa77c91f
MD5 21f441188d5e2f550e69956ba00a48e3
BLAKE2b-256 147cb3c967a391e0b27638f0136a570b59e220ed737ec30f59beffafde54d473

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d4df137063cb55d96b042a7da9a4944cb3e99d4f336fbee1cb57204a028bec6
MD5 36e1e8d8d6b6581dc152fabc9d96b055
BLAKE2b-256 2c5e806afe705990058c8b842e905c2a74b23dc6ff032e338c371a64e0cd4b20

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 09a10fc362163b9131f4136a5cde89539ea7c3dbcf228755296991764a5bdcfa
MD5 ced283e24e3a81562a867adfa789c516
BLAKE2b-256 c4756ac674c436f424d9d2e6595a03f56e14267e5ea9876e13dec0ed050d22c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 05fc5b8dacf5949e568d3b3d570e4fa476fa815dedf74efb0c385aba6e0665cf
MD5 16bf94da2d5ae4d871b257fa1358e4a3
BLAKE2b-256 216a382c5ac713582d097f2fd9e7e1c89438887c92552d91a70a2f4a74ef6ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ec02c1b18106628d976faee23749fcb52ad45e87b0144543e9358f0873221cc
MD5 dde0d592a40ff49f4d2abd7f53f93324
BLAKE2b-256 8e776944ab40714065d1f55b946d9b986ff4732fe03f9c9ecabc0db0f791d70a

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.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.1.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e0616aea7b067c29c60764707f7b4f43a95ee5e0d467cc1e06b058492efea260
MD5 6b69e4cd2d429f1a3ed2f5f838df6bb8
BLAKE2b-256 7e98777107fb2e724a5a7e5a53820884448b1d9aad7ea64039243408192ab82d

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