MCPcopy Index your code
hub / github.com/aptly-dev/aptly / put

Method put

system/api_lib.py:110–116  ·  view source on GitHub ↗
(self, uri, *args, **kwargs)

Source from the content-addressed store, hash-verified

108 self.check_equal(resp.json(), expected_output)
109
110 def put(self, uri, *args, **kwargs):
111 if "json" in kwargs:
112 kwargs["data"] = json.dumps(kwargs.pop("json"))
113 if "headers" not in kwargs:
114 kwargs["headers"] = {}
115 kwargs["headers"]["Content-Type"] = "application/json"
116 return requests.put("http://%s%s" % (self.base_url, uri), *args, **kwargs)
117
118 def put_task(self, uri, *args, **kwargs):
119 self._ensure_async(kwargs)

Callers 1

put_taskMethod · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected