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

Method connect_project

scratchattach/site/session.py:1154–1164  ·  view source on GitHub ↗

Gets a project using this session, connects the session to the Project object to allow authenticated actions sess Args: project_id (int): ID of the requested project Returns: scratchattach.project.Proje

(self, project_id)

Source from the content-addressed store, hash-verified

1152 return self._make_linked_object("username", self.find_username_from_id(user_id), user.User, exceptions.UserNotFound)
1153
1154 def connect_project(self, project_id) -> project.Project:
1155 """
1156 Gets a project using this session, connects the session to the Project object to allow authenticated actions
1157 sess
1158 Args:
1159 project_id (int): ID of the requested project
1160
1161 Returns:
1162 scratchattach.project.Project: An object that represents the requested project and allows you to perform actions on the project (like project.love)
1163 """
1164 return self._make_linked_object("id", int(project_id), project.Project, exceptions.ProjectNotFound)
1165
1166 def connect_studio(self, studio_id) -> studio.Studio:
1167 """

Callers 10

create_projectMethod · 0.95
handle_nocmdFunction · 0.80
create_remixMethod · 0.80
upload_json_fromMethod · 0.80
target_commentMethod · 0.80
test_commentFunction · 0.80
test_projectFunction · 0.80
test_projectFunction · 0.80

Calls 1

_make_linked_objectMethod · 0.95

Tested by 3

test_commentFunction · 0.64
test_projectFunction · 0.64
test_projectFunction · 0.64