cbapi Python Bindings - 1.0.1
This release fixes a few bugs from the 1.0.0 release, notably:
- #53 and #54 - Exceptions thrown when iterating over Model Objects from multiple worker threads
- The code is now much more resilient when invalid Processes are returned from the Cb Response server. If cbapi receives an invalid process ID from the Cb Response server, it will not attempt to retrieve further details about that process and also set the attribute
.valid_processto False. Normal, valid processes will have.valid_processset to True.
Also in this release, one new feature:
- #55 - Thanks to a contribution from @mjm461, the CbResponseAPI and CbProtectionAPI constructors now take an optional
timeoutandmax_retrieskeyword arguments. The default timeout is set to 120 seconds and the default number of retries is set to 5. You can override these through thetimeoutandmax_retrieskeyword arguments: for example,CbResponseAPI(timeout=10)will instruct cbapi to connect to your default Cb Response server and throw aTimeoutErrorif the Cb Response server does not respond within 10 seconds to API requests.