Skip to main content

Drow Aio

Prometheus http query client for Python asyncio.

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

PyPI Version Build Status

install

pip install drow-aio

usage

get client:

from drow_aio import get_client

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

query as vector:

result = await 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 = await 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-aio 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-aio 0.0.2
File Size Uploaded
drow_aio-0.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

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

Total release size: 6.0 kB

Release files / drow_aio-0.0.2.tar.gz

Download URL drow_aio-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
90c78fef31d3972d881241a6314490e10ae31dbc250e590e39abb06ff29903c7
BLAKE2b-256 checksum
How to use checksums
72a161ab401d0b2e5f5a3be27ee969a53e95c04636d4f87de02ad79b169c861d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

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

Download URL drow_aio-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a369d416035eafea884d233fef3b49154dedc0ecde93164dc99025f034b7d196
BLAKE2b-256 checksum
How to use checksums
fbf44ab190086c7624a6f2cbbfba5112f408bf58b1a38fdf56f5b0662f1d7685
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