MCPcopy Create free account
hub / github.com/EasyIME/PIME / createInstance

Method createInstance

python/serviceManager.py:53–62  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

51 self.configTool = jsonData.get("configTool", "")
52
53 def createInstance(self, client):
54 if not self.moduleName or not self.serviceName or not self.guid:
55 return None
56 if not self.textServiceClass: # constructor is not yet imported
57 # import the module
58 mod = importlib.import_module(self.moduleName)
59 self.textServiceClass = getattr(mod, self.serviceName)
60 if not self.textServiceClass:
61 return None
62 return self.textServiceClass(client) # create a new instance for this text service
63
64
65class TextServiceManager:

Callers 1

createServiceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected