Skip to main content

Drow HTTP

Prometheus http query client of Python.

Implemented prometheus http api: https://prometheus.io/docs/prometheus/latest/querying/api/

PyPI Version Build Status

install

pip install drow-http

usage

get client:

from drow_http import get_client

client = get_client("http://127.0.0.1:9090")

query as vector:

result = client.query_as_vector("http_requests_total")
for s in result.series:
    print(s.metric, s.value.timestamp, s.value.value)

query range:

import time

end = time.time()
start = end - 60 * 60

result = client.query_range("http_requests_total", start=start, end=end)
for s in result.series:
    print(s.metric)
    for p in s.values:
        print(p.timestamp, p.value)

Release files for drow-http 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drow-http 0.0.2
File Size Uploaded
drow_http-0.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drow-http 0.0.2
File Interpreter ABI Platform
drow_http-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / drow_http-0.0.2.tar.gz

Download URL drow_http-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9d241d4041ac43bf2ce890525394e21e590b2db533072032cec42f6ab0af0a08
BLAKE2b-256 checksum
How to use checksums
4a50070aa948fc2295ecb73622813e85b8aa3462916ccae4f9352c5bf6ae538a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / drow_http-0.0.2-py3-none-any.whl

Download URL drow_http-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07ccfcffe583530b1d609c54c23bf0deb83df2328059208417b897decf155890
BLAKE2b-256 checksum
How to use checksums
5a87c9499f17dca7e17dbb5c5eeed734c8e1428a5b50fa5d366aaee55361d340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page