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

Method projects

scratchattach/site/studio.py:318–331  ·  view source on GitHub ↗

Gets the studio projects. Keyword arguments: limit (int): Max amount of returned projects. offset (int): Offset of the first returned project. Returns: list : A list containing the studio projects as Project

(self, limit=40, offset=0)

Source from the content-addressed store, hash-verified

316 )
317
318 def projects(self, limit=40, offset=0) -> list[project.Project]:
319 """
320 Gets the studio projects.
321
322 Keyword arguments:
323 limit (int): Max amount of returned projects.
324 offset (int): Offset of the first returned project.
325
326 Returns:
327 list<scratchattach.project.Project>: A list containing the studio projects as Project objects
328 """
329 response = commons.api_iterative(
330 f"https://api.scratch.mit.edu/studios/{self.id}/projects", limit=limit, offset=offset)
331 return commons.parse_object_list(response, project.Project, self._session)
332
333 def curators(self, limit=40, offset=0) -> list[user.User]:
334 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected