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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.7 Windows x86-64

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

File metadata

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

File hashes

Hashes for promql_parser-0.3.1.tar.gz
Algorithm Hash digest
SHA256 765ca56d6884674972950ec1a5c6bda6a49fd3cca036880f8b1391d218b3a1c3
MD5 28e73e5e57802191e1ad46d357fe9bb6
BLAKE2b-256 c63a10f377db8ca689240e8c424106de5c91db45f3cabcf46cb45bf75d777d2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b05fce5ab9456575678893072c31451696a86d764a8ab72e9a3e165f570c25f3
MD5 69759656485275d6796f59986b0de390
BLAKE2b-256 c50c214c68f3a826336b3034c9f2b33ac0431e643bb360638b3521384f7d26b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f117bc8ce601b03ad9a80c1f15a832ebe1608cb3038c93a2383a0df05b05ba56
MD5 e671875126e3b1b90618ddfd23ac6dbc
BLAKE2b-256 1bdebe1d05785063ef3580d072f71dc6e70804e73a47f13bb9e4bff236ee06ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e89e5e92a8f84edf298ede80b8ad6e11e6323486e532a5bbbfe27976d37292f
MD5 70d63a800ef5617d53810664ca200601
BLAKE2b-256 f4ce24204a833cc3544cd3016f5a3c7b5f54765c9157025bb9329b1497f0521d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e858bfaf9792575923a7bae82b36c0c603e7373d31a05f5b090a4119e77cecb1
MD5 030f19f420eaa1a30dd857f0eea4a8ba
BLAKE2b-256 4b60e4a8f44e10c5a1f5113926a676012b4729fceec984b6bdfcf214ffd46d2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb7ad4437df7f7fd36e8eb4526e65dcabc77fdfdecf4e8c8dfd36c44735e8e74
MD5 fbb3af07bb1e1c2386aa9ea7913bfda7
BLAKE2b-256 4bee43dc781f65fcae9fb98c40a7266b72d04bd1bb004aa1fbd738abc265a143

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 56998a61998c644bc3b16364b828f5c5e844081c4ddc6b463e876d1e70a2dae1
MD5 df7bd166aa515a0bda99b3a955a74648
BLAKE2b-256 f7d66962364ef7c98be9a0c6b8c3e258be65d10beabd9a3174ded0f8ba3aad32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc7f723b13860506888c5a0c53003fe93a3d99f146ad34de7be9f9d56df030be
MD5 8b9a55f873b4bf2aff13a20bf8cf855d
BLAKE2b-256 4cc000e8f1a4ac596e6889342b4d1e6023eb5e62288b8ed527637d159e1357da

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ab56469a0eaf47329c552905ec5c33d2351c1848bed9d591f0f70e5073f5fe1c
MD5 164b914489bedc9e0b8ba164fcb3a50f
BLAKE2b-256 7d06fbd0be40b0fbeb53865da506ab03cb021093970bb3855101bbf400d5b23d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 ab815c653e4502517d4b807a8689c77763608196a12a6dc9790be48536be9814
MD5 6a56008efe76ab21f846896fb2c9b686
BLAKE2b-256 f23948a0f129838e383ce3e1373c575b20601eb2228a590ef382359065b38c91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb7355d1e2e9996ec38b64a66e3b2f9e2be551aaa8cb68a5519ccc26b12cd2f5
MD5 e8af332458f6080cdbde8f2b20097d03
BLAKE2b-256 8a982fb9114e321bffea414d2403b19eceafe5d7cb0c95f9f20a079db0a9f81d

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ff132c13034d81e522e58e4f00fbacb5758bbb5ea30b4cc41758ce85de177423
MD5 c4e3d54e0aebd8bec253d05e9e02227f
BLAKE2b-256 ad674e7eae9c09e3405bfdb40ed195f429dccff59b3ed8a95b81ea1b0234f93a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 f6c0ac19e31226086d47ceb1af748504412bbf4a366b3efae1240d709d5e42d8
MD5 51474146b54b03a719855843d6561666
BLAKE2b-256 edb6c6f8214b46e1277319e8168681c20f92925a9964ce470ad5f428d51f952d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af21579f7da01f4d6e4c76f5e6f8fff3571718ab1ac6c8d7699a211c5a5b12f7
MD5 38fb5bc87724a25f19f1652f8e01fece
BLAKE2b-256 41743a76df40b5948b6393f8d77b4ce96e0bc1c745b88344eaf554998ba38cfb

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4eece9c065b3ce614fd725877fc212af1073bd4f2cb12773cc84b4d7ff9380cf
MD5 75eb6a5852e7925606eb4f342e880f46
BLAKE2b-256 899998c145dcae29d1ca50479015d325c8ae04d31d6f8f22e8f9fb7f04cd567c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 0a152015b84d21cac19e89619428ab48f6d7c741f41e6b2a36637dbcfeb922ea
MD5 9f1015d7172e3a63511f76b98a77e8bd
BLAKE2b-256 f275d533543b8a915517eae2d312fdd2776d15ef18f228683f2e16e09ae9ac97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b08399d6976bcb8a8a874d7038a8f2840306f61f22b1f11474a712cc7f2f833c
MD5 0f64a88224aab8934e3ffa44dc722341
BLAKE2b-256 18e7d93ac98aa850d6e3dae58530ef274e1110b80e27f89d5310cffb55b40c7e

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 37f5d0d7871cfadca7295526ca18b4558ee38ae0181a5db24a0b69855bf7ce2d
MD5 081808d534e885b62f00e8ae4ff47f09
BLAKE2b-256 68fd85733712708d82c3878f7fafef47737e0a64c289c382ab75863fd5fad07a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 5dcb1d88d42ea22ca81740c9805d16b39f8c18a2879baf1420f272cd86718e8d
MD5 393bb277b1fae49d0831c341146f103a
BLAKE2b-256 1c14a2169cf4f8d931ea5291be1948397d69f7612161564e093efcac82cba7d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a663e4f98adbf945a12bc839eee7f5e8a09a6db3337eef5c5b84d97b51fc1df
MD5 2749ad0c21f25c5c7fe8920b3f1371c8
BLAKE2b-256 02c78c0ee8315a42d1afbcdf6fabbddfcae73c2398eb8e86a954c7a5c7877706

See more details on using hashes here.

File details

Details for the file promql_parser-0.3.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.3.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 51491aabc6a0fbb070eedd492dc0b2c973f6765939650d8f2bb9cdbcc2171c37
MD5 9aaf593d6349e43f9b05ff886518f596
BLAKE2b-256 b9b5f161b96ac937975127d315f2e2c9ee84a950e7453e5bd3a3848b5d079e38

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