MCPcopy
hub / github.com/diffgram/diffgram / get_client

Method get_client

shared/connection/connection_strategy.py:61–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.connection_class = CONNECTIONS_MAPPING[self.connection.integration_name]
60
61 def get_client(self):
62 if not self.connection:
63 raise Exception("connection object or connection_id must be supplied at init")
64
65 connector, success = self.get_connector()
66
67 connector.connect()
68
69 return connector.get_client()
70
71 def set_connection(self, connection_id = None, check_perms = None):
72 if not connection_id: return

Callers 1

execute_actionMethod · 0.95

Calls 2

get_connectorMethod · 0.95
connectMethod · 0.45

Tested by

no test coverage detected