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

Method projects

scratchattach/site/user.py:567–580  ·  view source on GitHub ↗

Returns: list : The user's shared projects

(self, *, limit=40, offset=0)

Source from the content-addressed store, hash-verified

565 return studios
566
567 def projects(self, *, limit=40, offset=0) -> list[project.Project]:
568 """
569 Returns:
570 list<projects.projects.Project>: The user&#x27;s shared projects
571 """
572 _projects = commons.api_iterative(
573 f"https://api.scratch.mit.edu/users/{self.username}/projects/",
574 limit=limit,
575 offset=offset,
576 _headers=self._headers,
577 )
578 for p in _projects:
579 p["author"] = {"username": self.username}
580 return commons.parse_object_list(_projects, project.Project, self._session)
581
582 def loves(self, *, limit=40, offset=0, get_full_project: bool = False) -> list[project.Project]:
583 """

Callers 4

test_userFunction · 0.45
test_studioFunction · 0.45
community_projectsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_userFunction · 0.36
test_studioFunction · 0.36