MCPcopy
hub / github.com/pex-tool/pex / from_json

Method from_json

pex/pex_info.py:94–98  ·  view source on GitHub ↗
(cls, content)

Source from the content-addressed store, hash-verified

92
93 @classmethod
94 def from_json(cls, content):
95 # type: (Union[bytes, Text]) -> PexInfo
96 if isinstance(content, bytes):
97 content = content.decode("utf-8")
98 return cls(info=json.loads(content))
99
100 @classmethod
101 def from_env(cls, env=ENV):

Callers 2

from_pexMethod · 0.45
pex_infoMethod · 0.45

Calls 1

decodeMethod · 0.80

Tested by 1

pex_infoMethod · 0.36