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

Uploaded Source

Built Distributions

promql_parser-0.1.1-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.1-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.1-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.1-cp311-none-win_amd64.whl (778.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.1.1-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.1-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.1-cp310-none-win_amd64.whl (778.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.1.1-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.1-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.1-cp39-none-win_amd64.whl (779.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.1.1-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.1-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.1-cp38-none-win_amd64.whl (779.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.1.1-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.1-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.1-cp37-none-win_amd64.whl (779.0 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.1.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5434bfb1f9a0c56bd18a5417cbe44600f4d13bc6e22e686d93213b4d6c32f42
MD5 bcf5c5fdd6b715c4ff26679dff74e400
BLAKE2b-256 aa228103487d69fdb2f29ce22712c8dcea8e5dcdcd5a2cc4909c60d4fdb7a454

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fab21530543b685f59c962465d14783e278a244846dc919734a06b6772e8075
MD5 bba467004cf7a4a0c7504177d37147ba
BLAKE2b-256 db56db2413d452fa5ebe758455fe295469190846eebaa2c7135b0499869eb512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c79469322249f8635db38787f074110bf94d779915b26014efd425d961644d6d
MD5 f8490defbd0fc5b893c35d98adf3d7a5
BLAKE2b-256 02d42e1fed6a169d20a37239a3cb116fb40f0a0930017a7c0b1836457699e195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f020b12b1118e4ba265cc20517570cc73ed5b78123f3020f4d8466c33555ea3d
MD5 ad953b038853fbc51fb466677db2260d
BLAKE2b-256 e0d67db609e73807612eb5b7e115f715de2826912b07e7342cc030c66edd87cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 96d00742593f42e957ed16027cf617d297b1bcdf237de75018ef1cac2b7f7c2d
MD5 782ef66979b37da2fb2fe396e59e9dc5
BLAKE2b-256 6f5389d71c01c6eb15ff5f6d27a2be95d95571793f3c8494149d426f649507bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 90eba9b28f50985ee0c71f0caf95bda32c3b1b1b8cf55e2cb28146f27d02209a
MD5 7ce5118a7c00ea98af8e888acd36117f
BLAKE2b-256 58dc716dd7849e2da6ded870e2a920101c6df720510b2c687d6db33adcc4e7f0

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.1-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.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 486274bc7a99d89d81feccf61cbcbcbb81e547dec8f93f9096ea565d7e3b2ac3
MD5 33515279d74919b8163478135339753f
BLAKE2b-256 96e91e645d713c1b115486ccacccbc5850ed8a8741c97c6d08ab427185de2aa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 065691c98587a6994d88920fda39b66da697b13e97a3540438be6b581be4ef6e
MD5 4c41c271b0a347024899724948bc5c63
BLAKE2b-256 865a75dfcb307935eba1d67ac3e7a4c87ade506820917ca4d56b0689a6f8d3ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e02b43f2ea4754301f7d5ef3d69185505f9f7c673c7c843982bf54f1c7042ec
MD5 e0ac1e50721750578fd6a1c1c3f27431
BLAKE2b-256 98e201b3971cb71d42a98db4bf494360b40119f71031b6fbf617246819f8bde2

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.1-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.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b0228dfed0322bf19f80e9db81e777235cc5b9bfd527569522f4fedc45693b37
MD5 dff40f6838ed470c1f4ef012c46760d7
BLAKE2b-256 ae16c1923bf93dad8d239f93daaf43c991d8d36d8badab507e49d00c9cc6444d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 a25cc4c483b654c777816a1e87139013a544336f9735f6e4cba5337d4c65ec6e
MD5 520aa9bfe86ceda8b3cc4f0a29fd3abc
BLAKE2b-256 44911faead35df45a8512a1e4fff71650696a92adcd1eb9c2de46f463684e529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 130efbf0d4eef5b81cd324f987b9ba55a39a98260d13dc898af15ff27b45535d
MD5 183a97328e0dd490e2946ef208885041
BLAKE2b-256 ea748718ccee73a47746b21b680368871ca0a4c966c8946e5ab4165693c07d32

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.1-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.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2e7d0b7705956e4bee149faa8f10fa464bb758b55c48e438be08b9f61fecb1f8
MD5 4537172051b4be177fa65d16f5689bdd
BLAKE2b-256 f4d2772674604a78eb2962c539fad73c6fbc489293ef3315c92ecfeb14b99901

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 6ddb5d81662e4d6f9bf17ecb9cc96bd9ad444ed833b630d1c17ac49606c26450
MD5 ffb5a60ca7daa4bc545a72e851bb0ff7
BLAKE2b-256 e7fd85b3bc7a5af06fd0b7b3b0d503ca0555f0946a7f051410ce644870c9df84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ff0e824100693b84bed993dc5237f5b9ea9ea0e991c19e2e8833c8c179555af
MD5 43c404344cef9d633a4ee9a372e69960
BLAKE2b-256 d2eaf322ef38ccdf8cd2410ac5221cd8c940d3adf650098f2e552f28a067ad40

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.1-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.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f85e673b8ebe453e5ba3994052bf506256645dfb2afa74956a9c071abc1b96ea
MD5 5feb2c06840f72f452cf7679a653086a
BLAKE2b-256 a923899b0d439a20943b61c73984530f1788dbb299e9ab521fdaf1fa95e1ffe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 59f3e89a4ecfa0e69d781f4564610472dbc2d9c9297e8aaec04df5657b92f6f3
MD5 4910bfb2b099041c2bfc92c2017ca5f6
BLAKE2b-256 59b4d3a5a9f079f9169d7de96854b00f206e18653b3d5c343f65836500dc6cab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71166253bb404c041b4b1a10d9508579e1061f3c4366efc99e444bd64bd2937f
MD5 70c0f8d81e4f309828e1fa9a038c02f3
BLAKE2b-256 6a7b3c0485d131c36f292dbe6ddaf7cebffca35d9fb5ed445db5a5abd39c1115

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.1-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.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1e9771c5a090aaa3e877d6324b9e39d9b5f53312c287a083c86dc3bb00090499
MD5 91383c43917d82ef6bc9f1ed8907c31b
BLAKE2b-256 7f2478894eb5c045fa824a55ee351deb89ff608af51fd41ea92a5e5f59169524

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