Google Spreadsheets Python API v4
76
A helper for keeping a spreadsheet's tabs organized, positioned, and prepared for data entry.
@generates
class WorksheetManager:
def ensure_sheet(self, spreadsheet, title: str, index: int | None = None, rows: int = 100, cols: int = 26):
"""Return a worksheet with the given title at the requested index; create or reposition it and apply initial sizing."""
def rename_and_set_visibility(self, spreadsheet, current_title: str, new_title: str | None = None, hidden: bool = False):
"""Rename a worksheet and set whether it is hidden, without altering its order."""
def resize_and_freeze(self, worksheet, rows: int, cols: int, freeze_rows: int = 0, freeze_cols: int = 0):
"""Ensure the worksheet has at least the given grid size and applies frozen panes on top rows and left columns."""Sheet and worksheet management for Google Sheets.
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