Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeOpcUa/python-opcua
/ wrapper
Function
wrapper
test_external_server.py:47–53 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
45
46
def
connect(func):
47
def
wrapper(self):
48
try
:
49
client = Client(URL)
50
client.connect()
51
func(self, client)
52
finally:
53
client.disconnect()
54
return
wrapper
55
56
Callers
nothing calls this directly
Calls
4
connect
Method · 0.95
disconnect
Method · 0.95
Client
Class · 0.90
func
Function · 0.50
Tested by
no test coverage detected