materia_epd.io package

Submodules

materia_epd.io.files module

materia_epd.io.files.gen_json_objects(folder_path)[source]

Yield (file, data) for valid JSON files in folder.

materia_epd.io.files.gen_xml_objects(folder_path)[source]

Yield (file, root) for valid XML files in folder.

materia_epd.io.files.latest_flow_file(flows_folder: Path, uuid: str) Path[source]

Return the flow XML file with the most recent version. Handles names like {uuid}.xml or {uuid}_version1.0.2.xml.

materia_epd.io.files.read_json_file(path)[source]

Return JSON content or None if invalid.

materia_epd.io.files.read_xml_root(path: Path | str)[source]
materia_epd.io.files.write_json_file(path, data) bool[source]

Write JSON content to a file. Returns True if successful, False otherwise.

materia_epd.io.files.write_xml_root(root: Element, path: Path | str) bool[source]

Write XML root to file. Returns True if successful.

materia_epd.io.paths module

Module contents