MCPcopy Create free account
hub / github.com/O365/python-o365 / get_worksheet

Method get_worksheet

O365/excel.py:1461–1473  ·  view source on GitHub ↗

Returns this table worksheet

(self)

Source from the content-addressed store, hash-verified

1459 return bool(self.session.post(url))
1460
1461 def get_worksheet(self):
1462 """ Returns this table worksheet """
1463 url = self.build_url('')
1464 q = self.q().select('name').expand('worksheet')
1465 response = self.session.get(url, params=q.as_params())
1466 if not response:
1467 return None
1468 data = response.json()
1469
1470 ws = data.get('worksheet')
1471 if ws is None:
1472 return None
1473 return WorkSheet(parent=self.parent, **{self._cloud_data_key: ws})
1474
1475
1476class WorkSheet(ApiComponent):

Callers

nothing calls this directly

Calls 7

WorkSheetClass · 0.85
build_urlMethod · 0.80
expandMethod · 0.80
selectMethod · 0.80
as_paramsMethod · 0.80
jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected