tessl install tessl/pypi-pygsheets@2.0.0Google Spreadsheets Python API v4
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.23x
Baseline
Agent success rate without this tile
62%
Utilities for working with spreadsheets that live inside a shared drive, including enabling shared-drive access, creating new files in shared-drive folders, moving them between folders, and listing them with shared-drive scoping applied.
ValueError when the id is empty. @test@generates
from typing import List, Dict, Any
def enable_shared_drive(credential_source: str, shared_drive_id: str):
"""Return an authenticated sheets client configured to operate on the shared drive."""
def create_shared_drive_sheet(client, title: str, folder_id: str) -> Dict[str, Any]:
"""Create a spreadsheet in the shared drive folder and return metadata including id, title, and parent folder id."""
def move_sheet_within_drive(client, file_id: str, source_folder_id: str, target_folder_id: str) -> Dict[str, Any]:
"""Move a spreadsheet between folders in the shared drive and return updated parent folder metadata."""
def list_shared_drive_sheets(client, title_prefix: str = "") -> List[Dict[str, str]]:
"""List spreadsheets in the shared drive, optionally filtered by title prefix, returning file ids and titles."""Python client for Google Sheets and Drive, used to authorize access, scope operations to a shared drive, create spreadsheets, move files, and list spreadsheets.