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

Method values_get

gspread/http_client.py:223–237  ·  view source on GitHub ↗

Lower-level method that directly calls `GET spreadsheets/ /values/ `_. :param str range: The `A1 notation `_ of the values to r

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

Source from the content-addressed store, hash-verified

221 return r.json()
222
223 def values_get(
224 self, id: str, range: str, params: Optional[ParamsType] = None
225 ) -> Any:
226 """Lower-level method that directly calls `GET spreadsheets/<ID>/values/<range> <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get>`_.
227
228 :param str range: The `A1 notation <https://developers.google.com/sheets/api/guides/concepts#a1_notation>`_ of the values to retrieve.
229 :param dict params: (optional) `Values Get Query parameters <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get#query-parameters>`_.
230 :returns: `Values Get Response body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get#response-body>`_.
231 :rtype: dict
232
233 .. versionadded:: 3.0
234 """
235 url = SPREADSHEET_VALUES_URL % (id, quote(range))
236 r = self.request("get", url, params=params)
237 return r.json()
238
239 def values_batch_get(
240 self, id: str, ranges: List[str], params: Optional[ParamsType] = None

Callers 5

rangeMethod · 0.45
col_valuesMethod · 0.45
getMethod · 0.45
_finderMethod · 0.45
test_values_getMethod · 0.45

Calls 2

requestMethod · 0.95
quoteFunction · 0.85

Tested by 1

test_values_getMethod · 0.36