Dalmatiner Python Client
Project description
dalmatiner-python-client
pip install --upgrade ddbpy
A client that sends metrics into Dalmatiner DB over the binary protocol and wraps the http front end for queries.
Docs for the binary protocol: https://docs.dalmatiner.io/en/latest/proto.html
Docs for the http api: https://docs.dalmatiner.io/en/latest/http_api.html
This client aims for correctness and simplicity first. Therefore it will remain pure python and synchronous. If you need an asynchronous client then please fork and modify and we’ll be happy to link back from this page below.
Other known libraries:
status
metric sending works
bucket and metric listing works via the binary protocol (this needs to be removed)
query via the http api has not been added yet
Pull requests welcome.
example usage
import time
from ddbpy.client import Send
dfe = ('127.0.0.1', 5555)
bucket = 'test'
with Send(dfe) as send:
send.switch_streaming(bucket)
while True:
ts = int(time.time())
value = "123.456"
metric = "float"
send.send_payload(metric, ts, value)
time.sleep(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ddbpy-0.0.4.tar.gz
.
File metadata
- Download URL: ddbpy-0.0.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2e26e3dec7c789661ef2be642c02c78978c0f74f8b8ee00c761b80a58d08cc |
|
MD5 | 4baf24ede9a8d0e2423ac09e41b0b711 |
|
BLAKE2b-256 | dc0aa8f5294b6b2e1db9412e9c6eb682395cd812ac8673dcdcfdb221f638345c |