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

Uploaded Source

Built Distributions

promql_parser-0.3.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.3.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.3.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.3.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.3.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.3.0-cp311-none-win_amd64.whl (943.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.3.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.3.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.3.0-cp310-none-win_amd64.whl (943.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.3.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.3.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.3.0-cp39-none-win_amd64.whl (943.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.3.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.3.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.3.0-cp38-none-win_amd64.whl (943.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.3.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.3.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.3.0-cp37-none-win_amd64.whl (943.1 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.3.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.3.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.3.0.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 abe832139285038d3848fd475f60cda3cd6b6d8f5a351e0cb1a7cee064b8b059
MD5 b403f33e439f8c8d7257cd438b8fcc34
BLAKE2b-256 bea065500dca4de2e2c4b9e6b73f498b436487b7c6507d73ca6415f122b53ccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffd72c004a2821d97e61d02a3458b6c23b85e80c72e4d9dab53370dbf777f87c
MD5 658891e233f9480e2ba85a73637a1e65
BLAKE2b-256 9b15ddc6700f73b3fac9ac6269d6250f47e58fde4ca66c55760327f9aa9d942d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9141378a5bd7c4f5b2e2b27804db44751cb24ab6019ce510e54a9c3f99d40667
MD5 3f325ac1d0c01caa593fa8eec0f141af
BLAKE2b-256 fe303db8f21492e6dfce76be68ea9af9d496966144e1909450d84fc06253549d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b8a6bceea516dcb50f18402a562a20b7c59b929295a5e4469cb0610455b3ed2
MD5 390b16b8e56715ec71b0bb4559b59ba2
BLAKE2b-256 69b4d0f0738f20f1def8f2cf97d89d8a40daebdb783ba8e4bbc555b7fc975811

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f42c5c2f7c1d809a9f4a05e3497b9297e2c490b849bd6a3daa0a5b65ef625fa8
MD5 0dde91a98f97aefeb5841b69537a5d3f
BLAKE2b-256 e0ac36a7b3aa399c9e4496c76507e8cdc0e1689eba75a841dfc52da6d9331a89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 103370f82aa0f47d42d87c509f8f4f56f2194999b839967c89295dd27b052ed1
MD5 e77a430785e9e535752f5a0a13d51b74
BLAKE2b-256 401abc09abb3e8c17a58d624c1c447bebca8f46dfa55b40a2856c71c02f67f0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 7ca6cb711399ce2b6b74c7dc2c61575e62de810f18700dfce26c9f1b7a216660
MD5 538acee33a0a435b50cd02659fed390b
BLAKE2b-256 05d207334bf6136c187bf4981ed4c551019afaa09c30c7b89cf04b1a92f8df36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f1ab8ef21d8e641f84facf776942390b36c3421a4062039426abbb82dd423a7b
MD5 289437c5256243e31164de84e6190a8a
BLAKE2b-256 859d1e81a0502eed442e272500c237f0ddd3523761e46a3e3eb5c74e987fe9c7

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 117ffce2aa4799d9114f193d37b5e763d7a04fea573f8fd115694173c4b44762
MD5 dfd4d734113e842b816bb5a7d84c0100
BLAKE2b-256 832fddb4f42d13b67721c0d7da032f31716379e7cb0b8da5ea9dac887efe3809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 828bc1e9bc4f9e23d90e6d0122a413f1033d918cc4dc1f19b3e7566744ece17d
MD5 1683a5ce7695227dbbd314270dfa37cc
BLAKE2b-256 9a7b445c6ec9d4a82b6907902dc1187615986855774b13fe1ba61a13d908fdec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18f8fa4ef4fd97f52934296947f71c829758431541d76d0475776352cb4a174e
MD5 9cc1a58ab3b6e6f9274a9fd7259a7c2c
BLAKE2b-256 83e21e5f83af5649781ecac9acf7f0191951339c9d3b0da013938a1f1ce29dc3

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 37afcf5c8ac7cdce5a0fcad9d6f82ba6f0102e7e2847b8ad423f85a488741fae
MD5 6109e2f61c781c2277c96763fbb1d332
BLAKE2b-256 46aa39000b4e9bebea49e26013403db1c5ec82be5d664769bcfbbded449d1bb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ea5b36108af6d2d2ead9ef268588e33ffee17e65462a063ea66710969dbe6fbd
MD5 38e4ef73c3f4ac7847ea0db1185baf06
BLAKE2b-256 dd4334457cbd860c56c1cb9411322077c5f379af2d5fb804f1c40b25b815de65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8476b03f2b777e5aeb0d1b18b32bb7fb5308d7ae06a9dfd32465a9ef17b7dee7
MD5 1f554a03a4b0c025bb4c6b46066ab099
BLAKE2b-256 a0440b92d9f21fe438cd9d4953057e4e5cb677d3968099f1668bb0df3fa9a836

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e9e2b0853a0114dcb6d54f16503262b58ddce78c0bcb4938719b5c9995427f97
MD5 2ad15c0cb4877a2bdce08c943a88624a
BLAKE2b-256 5b056c61ea6aeec53412b89eff3a156bffcebd3d7086da969ad9902ea416e1ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 60ca84f5ed87fba32f5b58f7676a5d2b64dd33f12a456fdb4f1d3ef9bdf9b1d1
MD5 67cc43a47de4b192ccbb94101ec10334
BLAKE2b-256 8b40bdf0a0f9db1a2855c4e99be1affd8734e7f96e40604399333c443652eb75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e8a4b8fda906fa7bb5a6e3535b2afad729eaaa395fc47d4b4b3f4921aadab9a4
MD5 4a8c7e9ed4471c21635444358e9b6ab6
BLAKE2b-256 59e5989af440baee778c918dd9ef66fde6eb6087f65532c5f999bc2e9f68312c

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ccf80dd1c28a6eedb1065382dbfb70bf4335828bd1b5b2152ca572018ce1a62c
MD5 259f2ca788db6431686370a8936f301e
BLAKE2b-256 945990c65811ddf5bc52a0514b3475677eec7100eb0f9441f9cf63f437cb1433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 31fb0e9abc8dc9796e72ca46b3968e10e0d99fb7f364d03c23d3197e58bcb2eb
MD5 8ed7cc483c692aafe28986faff097d9f
BLAKE2b-256 7e8f52717d05e8e96e9af68d94a8eeb9d319d2dfa47919d84c2daba103aa275b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce1f2c075ba3a1dce57563c4994dbe8d871c6766cd2c82d0481500353012a9f4
MD5 e066f7662adf5ec1d12f28e4b608d1b0
BLAKE2b-256 53b3eba85643eb3ae902cd2e382f207aa445b4be40d0a46548fcc5431c9f5bdf

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9651a1e0078195c326d7c2cc4403962ef105d40918873c77b4ba976bdf0a0b43
MD5 5fc73f6f972918bf6b289a79fb652f86
BLAKE2b-256 9390150e6c9df26e7355dd5718161a3b4648b6781888847a08a21629a0fd3dd4

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