pycsamt.iot.protocols.file#
File-backed telemetry transport (newline-delimited JSON).
A FileTelemetryClient appends each packet as one JSON object per
line (JSONL) to endpoint. It doubles as a source: receive()
walks previously written lines. This transport is dependency-free and is
the natural default for offline logging, replay, and testing.
Classes
|
Append/replay telemetry packets to a JSON-lines file. |
- class pycsamt.iot.protocols.file.FileTelemetryClient(endpoint=None, *, dry_run=False, append=True, **options)[source]#
Bases:
BaseTelemetryClientAppend/replay telemetry packets to a JSON-lines file.
- protocol: IoTProtocol = 'file'#