Google Spreadsheets Python API v4
76
Prepare a helper that stages multiple worksheet layout changes offline, then applies them in a single commit to minimize network calls.
@generates
from typing import Sequence, Any
class WorksheetLayoutPlanner:
def __init__(self, sheet: Any):
"""Initialize in staging mode against the provided worksheet handle without issuing network calls."""
def queue_layout(self, headers: Sequence[str], rows: Sequence[Sequence[Any]], column_widths: Sequence[int], freeze_rows: int = 1) -> None:
"""Queue merges, freezes, column widths, and value placement for the provided data without applying them yet."""
def commit(self) -> None:
"""Apply all staged structural and value updates to the live worksheet in a single sync."""
def cancel(self) -> None:
"""Drop any staged changes so the worksheet remains unchanged."""Provides worksheet staging and bulk update support. @satisfied-by
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