xtrace_sdk.connectors.google_drive_connector

Classes

GoogleDriveConnector

This is the base class for a Connector.

Module Contents

class xtrace_sdk.connectors.google_drive_connector.GoogleDriveConnector

Bases: xtrace_sdk.connectors.base.ConnectorBase

This is the base class for a Connector. It provides an interface for connecting to various data sources.

drive
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.

Return type:

None

load_data(folder_id)

Load data from a specific folder in Google Drive.

Parameters:

folder_id (str) – The ID of the folder to load data from.

Returns:

A collection of documents loaded from the specified folder.

Return type:

DocumentCollection