MCPcopy
hub / github.com/burnash/gspread / fetch_sheet_metadata

Method fetch_sheet_metadata

gspread/spreadsheet.py:218–230  ·  view source on GitHub ↗

Similar to :method spreadsheets_get:`gspread.http_client.spreadsheets_get`, get the spreadsheet form the API but by default **does not get the cells data**. It only retrieve the the metadata from the spreadsheet. :param dict params: (optional) the HTTP params for the GET req

(
        self, params: Optional[ParamsType] = None
    )

Source from the content-addressed store, hash-verified

216 )
217
218 def fetch_sheet_metadata(
219 self, params: Optional[ParamsType] = None
220 ) -> Mapping[str, Any]:
221 """Similar to :method spreadsheets_get:`gspread.http_client.spreadsheets_get`,
222 get the spreadsheet form the API but by default **does not get the cells data**.
223 It only retrieve the the metadata from the spreadsheet.
224
225 :param dict params: (optional) the HTTP params for the GET request.
226 By default sets the parameter ``includeGridData`` to ``false``.
227 :returns: The raw spreadsheet
228 :rtype: dict
229 """
230 return self.client.fetch_sheet_metadata(self.id, params=params)
231
232 def get_worksheet(self, index: int) -> Worksheet:
233 """Returns a worksheet with specified `index`.

Callers 7

__init__Method · 0.95
get_worksheetMethod · 0.95
get_worksheet_by_idMethod · 0.95
worksheetsMethod · 0.95
worksheetMethod · 0.95
list_named_rangesMethod · 0.95
list_protected_rangesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected