Skip to main content

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)

Metadata

Release files for ddbpy 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddbpy 0.0.4
File Size Uploaded Provenance Actions
ddbpy-0.0.4.tar.gz 4.3 kB Without provenance Details for ddbpy-0.0.4.tar.gz

Release files / ddbpy-0.0.4.tar.gz

Download URL ddbpy-0.0.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
da2e26e3dec7c789661ef2be642c02c78978c0f74f8b8ee00c761b80a58d08cc
BLAKE2b-256 checksum
How to use checksums
dc0aa8f5294b6b2e1db9412e9c6eb682395cd812ac8673dcdcfdb221f638345c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ddbpy 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

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