ddbpy-0.0.4
توضیحات
Dalmatiner Python Client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ddbpy-0.0.4 |
| نام | ddbpy |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Steven Acreman |
| ایمیل نویسنده | steven.acreman@dataloop.io |
| آدرس صفحه اصلی | https://github.com/dataloop/dalmatiner-python-client |
| آدرس اینترنتی | https://pypi.org/project/ddbpy/ |
| مجوز | Apache License, Version 2.0 |
.. _readme:
`dalmatiner-python-client`_
----------------------------
.. code-block:: none
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:
Erlang: https://github.com/dalmatinerdb/ddb_client
`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`_
----------------------------
.. code-block:: none
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)
نحوه نصب
نصب پکیج whl ddbpy-0.0.4:
pip install ddbpy-0.0.4.whl
نصب پکیج tar.gz ddbpy-0.0.4:
pip install ddbpy-0.0.4.tar.gz