Drow Aio
Prometheus http query client for Python asyncio.
Implemented prometheus http api: https://prometheus.io/docs/prometheus/latest/querying/api/
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)
| File | Size | Uploaded | |
|---|---|---|---|
| drow_aio-0.0.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|