Google Spreadsheets Python API v4
76
A module that provisions, duplicates, catalogs, and tears down spreadsheets while returning clear metadata for each operation.
@generates
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class SpreadsheetSummary:
id: str
title: str
url: str
template_source: Optional[str] = None
class SpreadsheetLifecycleManager:
def create(self, title: str, folder_id: Optional[str] = None, template_id: Optional[str] = None) -> SpreadsheetSummary:
"""Create a spreadsheet, optionally in a folder or from a template."""
def duplicate(self, source_id: str, new_title: str, destination_folder_id: Optional[str] = None) -> SpreadsheetSummary:
"""Copy an existing spreadsheet to a new one with a new title."""
def list(self, title_prefix: Optional[str] = None) -> List[SpreadsheetSummary]:
"""List accessible spreadsheets, optionally filtered by title prefix."""
def remove(self, spreadsheet_id: str) -> bool:
"""Delete a spreadsheet and return True if deletion was confirmed."""Google Sheets client for spreadsheet lifecycle operations.
Install with Tessl CLI
npx tessl i tessl/pypi-pygsheetsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10