sources.helpers.requests.session
Session Objects
class Session(BaseSession)
Requests session which by default adds a timeout to all requests and calls raise_for_status()
on response
Arguments:
timeout
- Timeout for requests in seconds. May be passed astimedelta
orfloat/int
number of seconds. May be a single value or a tuple for separate (connect, read) timeout.raise_for_status
- Whether to raise exception on error status codes (usingresponse.raise_for_status()
)