Skip to main content

Dalmatiner Python 3 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:

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddbpy3-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file ddbpy3-0.0.1.tar.gz.

File metadata

  • Download URL: ddbpy3-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ddbpy3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ab546223601a61a1817ff22e8a3ecec5754ee6dabd1f6ddfb856886f9bff3fd4
MD5 4456d0b5ad70a704824a7d4a9fee2a29
BLAKE2b-256 e369df364adee62b06337e10b3f614a9090b97b5d507c5bfe3b7290b30df9a43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page