Version 0.4.10 released! #172
jshcodes
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FalconPy v.0.4.10
This release adds timeout handling functionality and fixes for proxy support within Service Classes.
Special thanks to @matcha-shake for suggesting this enhancement. 🙇
Using timeouts
The timeout value you pass to the Service or Uber class is utilized for all calls to the requests library. For scenarios where you are creating multiple objects to represent different API's, you will be able to set specific timeouts for each API service collection.
Specifying timeouts
The timeout value is passed directly to the requests library, allowing you to specify a float for a "generic" timeout and a tuple to specify read/connect timeouts. Values should be specified in seconds.
Generic timeouts
Passing a float for the timeout value will allow you to specify a timeout for the entire operation.
Connect / Read timeouts
Using a tuple for the timeout value will allow you to specify individual timeouts for connect and read.
Unit test coverage
Bandit analysis
[main] INFO running on Python 3.9.2 Run started:2021-06-21 19:14:31.312037 Test results: No issues identified. Code scanned: Total lines of code: 18548 Total lines skipped (#nosec): 0 Run metrics: Total issues (by severity): Undefined: 0.0 Low: 0.0 Medium: 0.0 High: 0.0 Total issues (by confidence): Undefined: 0.0 Low: 0.0 Medium: 0.0 High: 0.0 Files skipped (0):
Added features and functionality
Issues resolved
Other
tests/test_timeout.py
)Installation
You can install this new release by installing the package via the Python Package Index.
or
Upgrading
You can upgrade to this new release by installing the update via the Python Package Index.
or
This discussion was created from the release Version 0.4.10.
Beta Was this translation helpful? Give feedback.
All reactions