MCPcopy
hub / github.com/vladmandic/sdnext / getsync

Function getsync

cli/sdapi.py:108–115  ·  view source on GitHub ↗
(endpoint: str, json: dict | None = None)

Source from the content-addressed store, hash-verified

106
107
108def getsync(endpoint: str, json: dict | None = None):
109 try:
110 req = requests.get(f'{sd_url}{endpoint}', json=json, verify=False, auth=authsync()) # pylint: disable=missing-timeout
111 res = resultsync(req)
112 return res
113 except Exception as err:
114 log.error({ 'session': err })
115 return {}
116
117
118async def post(endpoint: str, json: dict | None = None):

Callers 6

interruptsyncFunction · 0.85
progresssyncFunction · 0.85
get_logFunction · 0.85
get_infoFunction · 0.85
optionsFunction · 0.85
sdapi.pyFile · 0.85

Calls 3

authsyncFunction · 0.85
resultsyncFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected