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_process
to False. Normal, valid processes will have.valid_process
set 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
timeout
andmax_retries
keyword arguments. The default timeout is set to 120 seconds and the default number of retries is set to 5. You can override these through thetimeout
andmax_retries
keyword arguments: for example,CbResponseAPI(timeout=10)
will instruct cbapi to connect to your default Cb Response server and throw aTimeoutError
if the Cb Response server does not respond within 10 seconds to API requests.