Method only works for project created with Scratch 3. Returns: scratchattach.editor.Project: The contents of the project as editor Project object
(self)
| 318 | raise (exceptions.FetchError("Method only works for projects created with Scratch 3")) from exc |
| 319 | |
| 320 | def body(self) -> editor.Project: |
| 321 | """ |
| 322 | Method only works for project created with Scratch 3. |
| 323 | |
| 324 | Returns: |
| 325 | scratchattach.editor.Project: The contents of the project as editor Project object |
| 326 | """ |
| 327 | raw_json = self.raw_json() |
| 328 | return editor.Project.from_json(raw_json) |
| 329 | |
| 330 | def raw_json(self): |
| 331 | """ |