kafka_dae_control.save_restore

IO utilities for saving and loading data which should persist.

Members

load_data

Load persisted data from file.

save_file

Save relevant dataclass fields to a file.

kafka_dae_control.save_restore.load_data(state_file: Path) Data[source]

Load persisted data from file.

kafka_dae_control.save_restore.save_file(data: Data, *_: int | str, state_file: Path) None[source]

Save relevant dataclass fields to a file.

Parameters:
  • data – the dataclass containing the state of the program

  • state_file – the file to save the state to.

Returns: None