MCPcopy Create free account
hub / github.com/Boris-code/feapder / create

Method create

feapder/commands/create/create_json.py:39–56  ·  view source on GitHub ↗
(self, sort_keys=False)

Source from the content-addressed store, hash-verified

37 return data
38
39 def create(self, sort_keys=False):
40 contents = self.get_data()
41
42 json = {}
43 for content in contents:
44 content = content.strip()
45 if not content or content.startswith(":"):
46 continue
47
48 regex = "([^:\s]*)[:|\s]*(.*)"
49
50 result = tools.get_info(content, regex, fetch_one=True)
51 if result[0] in json:
52 json[result[0]] = json[result[0]] + "&" + result[1]
53 else:
54 json[result[0]] = result[1].strip()
55
56 print(tools.dumps_json(json, sort_keys=sort_keys))

Callers 7

oFunction · 0.45
lFunction · 0.45
docsify.min.jsFile · 0.45
tplFunction · 0.45
cFunction · 0.45
intercept.jsFile · 0.45
mainFunction · 0.45

Calls 1

get_dataMethod · 0.95

Tested by

no test coverage detected