How to close an API connection and start a new one?

bcraigie
bcraigie Registered Posts: 2 ✭✭

Using the python API:

import dataikuapi

client = dataikuapi.DSSClient(https://"some_host"….)

…. process some things

client = dataikuapi.DSSClient(https://"some_other_host"….)

…. process some things

How can I close the connection so I can move on to another host? I was looking for client.close() or something similar. I tried just making a new client like above, but I got a screed of errors on the second client. I'm sure it's simple, but I can't find it in the documents. Thanks for any help. We're on DSS14.1.0 if that is relevant.

Operating system used: Windows 11

Best Answer

Answers

Setup Info
    Tags
      Help me…