MCPcopy Index your code
hub / github.com/bugy/script-server / from_json

Method from_json

src/model/server_conf.py:67–75  ·  view source on GitHub ↗
(cls, json_config)

Source from the content-addressed store, hash-verified

65
66 @classmethod
67 def from_json(cls, json_config):
68 config = LoggingConfig()
69
70 if json_config:
71 json_logging_config = json_config
72 config.filename_pattern = json_logging_config.get('execution_file')
73 config.date_format = json_logging_config.get('execution_date_format')
74
75 return config
76
77
78def _build_env_vars(json_object):

Callers 4

mainFunction · 0.80
from_jsonFunction · 0.80
_reload_configMethod · 0.80
_from_jsonFunction · 0.80

Calls 2

LoggingConfigClass · 0.85
getMethod · 0.45

Tested by 1

_from_jsonFunction · 0.64