sheets
#
Google Sheets tools for LangChain.
Classes
Base class for Google Sheets tools. |
|
Google Sheets date/time render options. |
|
Filter condition types for Google Sheets data filters. |
|
|
Google Sheets major dimension options. |
Google Sheets value render options. |
|
Input schema for GetSpreadsheetInfo. |
|
Tool that retrieves comprehensive metadata information from Google Sheets. This tool provides detailed metadata extraction capabilities from Google Sheets, allowing you to understand spreadsheet structure, sheet properties, named ranges, and other organizational information. It's essential for exploring spreadsheet contents before reading data and understanding the overall structure. Instantiate: .. code-block:: python from langchain_google_community.sheets import SheetsGetSpreadsheetInfoTool tool = SheetsGetSpreadsheetInfoTool( api_key="your_api_key", include_grid_data=False, include_formatting=False, include_validation=False, ) Invoke directly: .. code-block:: python result = tool.run( { "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms", "include_grid_data": False, "fields": "properties,sheets.properties", } ) Invoke with agent: .. code-block:: python agent.invoke({"input": "Get information about the spreadsheet structure"}) :returns: - Spreadsheet properties: Title, locale, timezone, etc. - Sheet information: Names, IDs, dimensions, properties - Named ranges: Defined ranges and their locations - Grid data: Detailed cell information (optional) - Metadata: Processing information and data structure :rtype: JSON string containing. |
|
Base class for Google Sheets read operations. |
|
Input schema for BatchReadSheetData. |
|
Schema for data filter criteria. |
|
Input schema for FilteredReadSheetData. |
|
Base schema for all read operations. |
|
Input schema for ReadSheetData. |
|
Tool that reads data from multiple ranges in Google Sheets efficiently. |
|
Tool that reads data from Google Sheets with advanced filtering capabilities. |
|
Tool that reads data from a single range in Google Sheets. |
|
Toolkit for interacting with Google Sheets. |
Functions
Build a Google Sheets service with OAuth2 credentials (full access). |
|
Build a Google Sheets service with API key (read-only access). |
|
|
Validate and normalize a range name. |
Validate and normalize a Google Spreadsheet ID. |