MCPcopy Create free account
hub / github.com/DataArcTech/ToG / __init__

Method __init__

ToG/client.py:104–111  ·  view source on GitHub ↗
(self, urls: tp.List[str])

Source from the content-addressed store, hash-verified

102
103class MultiServerWikidataQueryClient:
104 def __init__(self, urls: tp.List[str]):
105 self.clients = [WikidataQueryClient(url) for url in urls]
106 self.executor = ThreadPoolExecutor(max_workers=len(urls))
107 # # test connections
108 # start_time = time.perf_counter()
109 # self.test_connections()
110 # end_time = time.perf_counter()
111 # print(f"Connection testing took {end_time - start_time} seconds")
112
113 def test_connections(self):
114 def test_url(client):

Callers

nothing calls this directly

Calls 1

WikidataQueryClientClass · 0.70

Tested by

no test coverage detected