Skip to main content

pywagglemsg

Tiny Python library for (de)serializing Waggle messages. Although this is a public module, it's mostly geared towards building internal tools and services.

Example

import wagglemsg

msg = wagglemsg.Message(
    name='env.temperature.htu21d',
    value=10,
    timestamp=1602704769215113000,
    meta={
        "device": "bme280",
    },
)

data = wagglemsg.dump(msg)

# ... send data over the network ....

Protocol Description

This version of the protocol is very different than the previous Waggle binary protocol. The main focus is now on having a simple wire format that can be extended to support projects like Sage.

Overview

Conceptually, the prototol encodes "tagged timeseries" by providing fields for:

  • Timestamp - Time of measurement in nanoseconds.
  • Name - Name of measurement.
  • Value - Value of measurement.
  • Meta - Key-value "tags" used to track metadata.

Wire Format

The current wire format implementation is a JSON payload with fields:

  • ts. nanoseconds since epoch (int64)
  • name: name of measurement (string)
  • val: value of measurement (any JSON encodable type)
  • meta: metadata tags (map[str]str)
  • enc: optional value encoding (either ommited or "b64" when binary encoded to base64)

We show a couple reference examples here.

{
    "ts": 1613485750303896000,
    "name": "env.temp.htu21d",
    "val": 23.1,
    "meta": {
        "plugin": "metsense:1.0.3"
    }
}
{
    "ts": 1613485750303896000,
    "name": "raw.htu21d",
    "val": "AQIDBA==",
    "meta": {
        "plugin": "metsense:1.0.3"
    },
    "enc": "b64"
}

Metadata

Release files for pywagglemsg 0.4.0

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

Source distribution (sdist)

Source distribution for pywagglemsg 0.4.0
File Size Uploaded Provenance Actions
pywagglemsg-0.4.0.tar.gz 3.7 kB Without provenance Details for pywagglemsg-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywagglemsg 0.4.0
File Interpreter ABI Platform Actions
pywagglemsg-0.4.0-py3-none-any.whl Python 3 none any Details for pywagglemsg-0.4.0-py3-none-any.whl

Total release size: 7.7 kB

Release files / pywagglemsg-0.4.0.tar.gz

Download URL pywagglemsg-0.4.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0294603668ddb2d22436f6078287cd1e5ca0e00a534df5932f7dab832d894b48
BLAKE2b-256 checksum
How to use checksums
191d2668b0e3cda633fc48f95e23574d3d2fd41d74d5e3e786e44ca066129f32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / pywagglemsg-0.4.0-py3-none-any.whl

Download URL pywagglemsg-0.4.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be4ef5bb4bfaae77f4c3c47d775df5c2b89ff3f49c17154b434e41106ef79bae
BLAKE2b-256 checksum
How to use checksums
80d37e098b5d422a83c9a9e19256901943d493793405f98bac61911a5694a653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for pywagglemsg 0.4.0

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.4.0 This release

2 release files 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