Get the summary dict of the tracker.
(self)
| 330 | self._sock = None |
| 331 | |
| 332 | def summary(self): |
| 333 | """Get the summary dict of the tracker.""" |
| 334 | base.sendjson(self._sock, [base.TrackerCode.SUMMARY]) |
| 335 | value = base.recvjson(self._sock) |
| 336 | if value[0] != base.TrackerCode.SUCCESS: |
| 337 | raise RuntimeError(f"Invalid return value {value!s}") |
| 338 | return value[1] |
| 339 | |
| 340 | def text_summary(self): |
| 341 | """Get a text summary of the tracker.""" |