MCPcopy
hub / github.com/jhao104/proxy_pool / pop

Method pop

handler/proxyHandler.py:39–47  ·  view source on GitHub ↗

return and delete a useful proxy :return:

(self, https)

Source from the content-addressed store, hash-verified

37 return Proxy.createFromJson(proxy) if proxy else None
38
39 def pop(self, https):
40 """
41 return and delete a useful proxy
42 :return:
43 """
44 proxy = self.db.pop(https)
45 if proxy:
46 return Proxy.createFromJson(proxy)
47 return None
48
49 def put(self, proxy):
50 """

Callers

nothing calls this directly

Calls 1

createFromJsonMethod · 0.80

Tested by

no test coverage detected