MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / host

Method host

scratchattach/site/studio.py:470–481  ·  view source on GitHub ↗

Gets the studio host. Returns: scratchattach.user.User: An object representing the studio host.

(self)

Source from the content-addressed store, hash-verified

468 return commons.parse_object_list(response, user.User, self._session, "username")
469
470 def host(self) -> user.User:
471 """
472 Gets the studio host.
473
474 Returns:
475 scratchattach.user.User: An object representing the studio host.
476 """
477 managers = self.managers(limit=1, offset=0)
478 try:
479 return managers[0]
480 except Exception:
481 return None
482
483 def set_fields(self, fields_dict):
484 """

Callers 1

test_studioFunction · 0.80

Calls 1

managersMethod · 0.95

Tested by 1

test_studioFunction · 0.64