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

Method body

scratchattach/site/project.py:320–328  ·  view source on GitHub ↗

Method only works for project created with Scratch 3. Returns: scratchattach.editor.Project: The contents of the project as editor Project object

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

test_editor_projectFunction · 0.80
test_projectFunction · 0.80
test_projectFunction · 0.80

Calls 2

raw_jsonMethod · 0.95
from_jsonMethod · 0.45

Tested by 3

test_editor_projectFunction · 0.64
test_projectFunction · 0.64
test_projectFunction · 0.64