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

Function get_twconfig_data

scratchattach/editor/twconfig.py:96–100  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

94
95
96def get_twconfig_data(string: str) -> dict | None:
97 try:
98 return json.loads(string[len(_START):-len(_END)])
99 except ValueError:
100 return None
101
102
103# todo: move this to commons.py?

Callers 1

from_strMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected