farm-ng-core
|
Classes | |
class | EventsFileWriter |
Functions | |
bool | proto_to_json_file (str|Path file_path, Message proto_message) |
bool core.events_file_writer.proto_to_json_file | ( | str | Path | file_path, |
Message | proto_message | ||
) |
Write a proto Message to a JSON file. The parent directory of the file must exist. Args: file_path (str | Path): The path to the JSON file to create / overwrite. proto_message (Message): The proto message to write to the JSON file. Returns: True if the file was written successfully, False otherwise.