epicsarchiver.write.export_format
Export format writers for machine-readable output of archived events.
Classes
Supported machine-readable output formats for the export command. |
Functions
|
Write events to dest in the given format. Requires the [polars] extra. |
Module Contents
- class epicsarchiver.write.export_format.Format(*args, **kwds)[source]
Bases:
enum.EnumSupported machine-readable output formats for the export command.
- epicsarchiver.write.export_format.write_events(dest: IO[Any], fmt: Format, events: list[epicsarchiver.retrieval.archive_event.ArchiveEvent], meta: dict[int, epicsarchiver.retrieval.archive_event.ArchiveEventsMeta] | None) None[source]
Write events to dest in the given format. Requires the [polars] extra.
- Parameters:
dest – Binary destination to write to.
fmt – Output format (JSON, CSV, ARROW, or PARQUET).
events – Events to write.
meta – Optional per-year metadata.
- Raises:
ValueError – If fmt is not a supported event format (e.g. PB).