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)
| 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 | """ |