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

Uploaded Source

Built Distributions

promql_parser-0.1.2-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.2-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.2-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.2-cp311-none-win_amd64.whl (774.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

promql_parser-0.1.2-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.2-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.2-cp310-none-win_amd64.whl (774.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

promql_parser-0.1.2-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.2-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.2-cp39-none-win_amd64.whl (775.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

promql_parser-0.1.2-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.2-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.2-cp38-none-win_amd64.whl (775.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

promql_parser-0.1.2-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.2-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.2-cp37-none-win_amd64.whl (775.4 kB view details)

Uploaded CPython 3.7 Windows x86-64

promql_parser-0.1.2-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.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for promql_parser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b5f5da5ddaff7f5c0354e54bb974b0a44d03dd6fb877e6f96d1f0bbefcef2793
MD5 9b5bc64f7049dfcf2ae7a0ef569addcf
BLAKE2b-256 84c480cd3fc288b3296b9b1cf8062028019000163bcb871914582f09a19690bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77e0d12fc66f613b229cd50f6cc3b86191888996c164a044988b10bf12c2a7ba
MD5 570a00d4dd0ab5319120b8490f5e3be7
BLAKE2b-256 9170eeed3c9b582c9a9494595073cbc98f05d078821eacfb53f09333c6530e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7cea10fb460f5c941ae34a45feafb4c826ca7c1f0e36ac5d4df9fc00c327407
MD5 7e4fcb1db73e923ea3e15a5ec811fe7b
BLAKE2b-256 b27c32bb737d6a707d3bff5865f26bc9a0d39d57d3660bdb87c61baf524d9220

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40896e58c34fd08314ff917c7cc0b75aec9b816d03d397f47defed06a541d973
MD5 e47ecb09dbbf4445d47e9444c4de0522
BLAKE2b-256 7f8c5e035945c1fd64b14a08b0d3a3c1257c862b45c32b0727f08c6def19dea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b958a19f679b43ceb3e731d709821999eb1dc772afb206b51ad3f4649fac245
MD5 cab512aa7ce0abe9dc335c98b0b81ca2
BLAKE2b-256 b3a980824b79685c870772347d0c8410260810f07054b3d0ff94f0819570cdcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfcf58b8fe2fbbc0095a62753909769ce56e50edad15f898375d2146957dadd9
MD5 3d087a66e323889a0be2e941d61f2e33
BLAKE2b-256 b0fcce2765c8b7950b018104e63ce31324a41b386f3f7b3f9d9a9bfc79c82363

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.2-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.2-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 180ba5a0fa667b794c2c11f19cafb6b9ba948474e4540608099167f9e1872ce9
MD5 286ff331d9ab24b73071e9a860312464
BLAKE2b-256 3e4906ad275b147562f5c5d8c952f23bddaa9ba7b17b9ab660214fa373c23dbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 48307dd81be896f81bda9ac51a5b5ac006b9d146513a1cb74dfd44f26b477dda
MD5 39db6e96791ca98c46cbced668cb4e35
BLAKE2b-256 fb98c9a216189a42d022cb50258551503499a333b3a5f45e2c197c9c5c1021cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf72d9448b7ee542d4e2ea48389c16235c73b124b3bb4eb98ffbb5857c1d7d37
MD5 2026718364ff00367dbc19960c25f41d
BLAKE2b-256 04c92e1b5b2353b6c3df780cba110edc9be304a8755f55d85a8e56a71afc4e2e

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.2-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.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 646772238b2394fdf1c7af6fa3673b05a04988f2f46f96aebe2c75a1044f90af
MD5 662a202ad792e130e174ee2559875995
BLAKE2b-256 190756618297389cd60642c4c7934a2753118127d33e4bf156006860cccf6585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 b1e7ac34d6dd983004f280a1c2e88bff41ccf8179fd75630d6c2b4bc3d2599c0
MD5 d2e7ba42a72a7ac6068c8c3798e0c14b
BLAKE2b-256 4c25d91163952d9de16881cb5ca252eb08dd4e74be8a359f37564142e855024b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba027905837aae4e79659cdb065bc429dcf9799c33a9ebe6258443f95fffae0e
MD5 4912e3a085bd58f94526b3a99426e199
BLAKE2b-256 c375a13bf8c94ca503103e777a728f06623697c0fe9e84a0638b0ac4cdad65e7

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.2-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.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 be6dea7de7ac7ee6624b76ab3465b4a93a910b6302365d40ffc6a496b6a0f366
MD5 2446e016fd8a546a6c0756a6ef23b6e2
BLAKE2b-256 9063ccc67f6ebc3d7cbb89a2c38c42a46f7eb23126b1a3cb2d44f28817200d78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 0dc938cd2888abe4b70b4b8614e51db2637b66441bdb7f76bbf3a6479a132893
MD5 33d67878d862410c5257f633b0569b44
BLAKE2b-256 bf450174bd4f363229db82f3c7267ef27f49eb8b3b81f6aa3001bc7d6564abe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ed773edea839acfbcf054d512739ba5def01538d28ec5dea162b2ad227f6702
MD5 884e3e8fff74d4734bfd8ec9fa266ef6
BLAKE2b-256 4b1981afea5da459b39d03979b25198c5ac2521995927ec1387fc7dd907bff54

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.2-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.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d9eb77e07e3a9121d3f0fc1d78e3eb241069646979d59b61a1b89acc00a83299
MD5 479e3582801c0a871c2ac59e140e9e29
BLAKE2b-256 96b8e70be991fb7e187465e8f8882ee6f0293c5f88a64188db10703bbf43898d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 c3cc3a531b513287e28f9c2712f1f39849268ec7dd5f848464b72dc26d68ee87
MD5 13cd278836196c5de324565f070acd90
BLAKE2b-256 270004b0f3484deccad641e0d42758be072826c32a2b523fa9812476519bd96e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promql_parser-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db15ca5a2bd42969c0df23c50a178aff4ad5d555e3d38139dbad24e2d98250b2
MD5 f28ad5b5c47add64a306d4e9848dc2ce
BLAKE2b-256 02156872981145e9e89b297c0b0296a27952de2947bf43c61f9a8e8216d4c1fb

See more details on using hashes here.

File details

Details for the file promql_parser-0.1.2-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.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 759f0a6c3d876548723e86027b9362f5b57f20a18e716d1a99de54ef6b02692d
MD5 949c7d3062f8ce6a56ad54448dd82437
BLAKE2b-256 c722c87bba14db73394f7de357704a1377a47be9a7ea4943d12913a989d3d5af

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