epicsarchiver.write
Format writers and terminal table formatters for archived event output.
Submodules
Classes
Supported machine-readable output formats for the export command. |
|
Formats a list of PV names into a Rich Table for the search command. |
|
Renders a flat list of ArchiveEvents as a Rich table to the terminal. |
Functions
|
Write events to dest in the given format. Requires the [polars] extra. |
Package Contents
- class epicsarchiver.write.Format(*args, **kwds)[source]
Bases:
enum.EnumSupported machine-readable output formats for the export command.
- JSON
- CSV
- ARROW
- PARQUET
- PB
- epicsarchiver.write.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).
- class epicsarchiver.write.SearchTable[source]
Formats a list of PV names into a Rich Table for the search command.
- start: datetime.datetime | None
- end: datetime.datetime | None
- class epicsarchiver.write.FormatTable[source]
Renders a flat list of ArchiveEvents as a Rich table to the terminal.
- start: datetime.datetime
- end: datetime.datetime
- processor: epicsarchiver.retrieval.client.processor.Processor | None