tik_manager4.core.io ==================== .. py:module:: tik_manager4.core.io .. autoapi-nested-parse:: I/O Module to handle read/write operations. Attributes ---------- .. autoapisummary:: tik_manager4.core.io.LOG Classes ------- .. autoapisummary:: tik_manager4.core.io.IO Module Contents --------------- .. py:class:: IO(file_path=None) Handler class for read/write operations. .. py:method:: file_exists(file_path) :staticmethod: Check if the file exists. Args: file_path (str): The file path to check. .. py:method:: get_modified_time() Get the modified time of the file .. py:method:: read(file_path=None) Read the given file and return the data. Args: file_path (str): The file path to read from. Raises: FileNotFoundError: If the file does not exist. Returns: dict: The data read from the file. .. py:method:: write(data, file_path=None) Write the given data to the file. Args: data (dict): The data to write. file_path (str): The file path to write to. Raises: fl.Timeout: If the file is locked by another process. .. py:property:: file_path Return the file path. .. py:data:: LOG