xtrace_sdk.connectors.local_disk_connector ========================================== .. py:module:: xtrace_sdk.connectors.local_disk_connector Classes ------- .. autoapisummary:: xtrace_sdk.connectors.local_disk_connector.LocalDiskConnector Module Contents --------------- .. py:class:: LocalDiskConnector(directory) Bases: :py:obj:`xtrace_sdk.connectors.base.ConnectorBase` This is the base class for a Connector. It provides an interface for connecting to various data sources. .. py:attribute:: directory .. py:method:: connect() Establish a connection to the data source. This method should be implemented by subclasses to handle the specifics of connecting to the data source. .. py:method:: load_data() Load data from the specified local disk directory. :return: A list of file paths in the specified directory. :rtype: list .. py:method:: load_data_from_file(file_path) :staticmethod: Load data from a specific file in the local disk directory. :param file_path: The path of the file to load data from. :type file_path: str :return: A collection of documents loaded from the specified file. :rtype: DocumentCollection