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

Function read_sb3_file

scratchattach/other/project_json_capabilities.py:453–456  ·  view source on GitHub ↗
(path_to_file)

Source from the content-addressed store, hash-verified

451 else:
452 raise ValueError("specified sb3 archive doesn't contain project.json")
453def read_sb3_file(path_to_file):
454 pb = ProjectBody()
455 pb.from_json(_load_sb3_file(path_to_file))
456 return pb
457def download_asset(asset_id_with_file_ext, *, filename=None, dir=""):
458 if not (dir.endswith("/") or dir.endswith("\\")):
459 dir = dir + "/"

Callers

nothing calls this directly

Calls 3

from_jsonMethod · 0.95
ProjectBodyClass · 0.85
_load_sb3_fileFunction · 0.85

Tested by

no test coverage detected