MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / HelloClient

Class HelloClient

examples/simple-client-server-xml/client_minimal.py:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class HelloClient:
7 def __init__(self, endpoint):
8 self.client = Client(endpoint)
9
10 def __enter__(self):
11 self.client.connect()
12 return self.client
13
14 def __exit__(self, exc_type, exc_val, exc_tb):
15 self.client.disconnect()
16
17
18if __name__ == '__main__':

Callers 1

client_minimal.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected