MCPcopy Create free account
hub / github.com/apache/devlake / get

Method get

backend/python/pydevlake/pydevlake/api.py:150–157  ·  view source on GitHub ↗
(self, *path_args, **query_args)

Source from the content-addressed store, hash-verified

148 return target
149
150 def get(self, *path_args, **query_args) -> Response:
151 parts: list[str] = [self.base_url, *path_args] if self.base_url else path_args
152 url: str = "/".join([str(a).strip('/') for a in parts])
153 req = Request(url, query_args)
154 resp = self.send(req)
155 if logger.isEnabledFor(DEBUG): # explicit check because logger call is potentially expensive
156 logger.debug(f'PyDevlake REST call to GET {resp.get_url_with_query_string()} responded with {resp.status} and {resp.json}')
157 return resp
158
159 def request_hooks(self):
160 if not hasattr(self, '_request_hooks'):

Callers 15

incrementalMethod · 0.80
set_configFunction · 0.80
autoextractFunction · 0.80
sendMethod · 0.80
FieldFunction · 0.80
_mk_contextMethod · 0.80
get_streamMethod · 0.80
collectMethod · 0.80
get_next_page_idMethod · 0.80
projectsMethod · 0.80
git_reposMethod · 0.80

Calls 3

sendMethod · 0.95
RequestClass · 0.85

Tested by 2

collectMethod · 0.64