libcsm.requests.session module

Module contents

Common functions for working with requests.session in libCSM.

libcsm.requests.session.get_session(crt_variable='REQUESTS_CA_BUNDLE')

Get a requests.session and set verify with crt_variable.

Parameters:

crt_variable (str) – Variable holding the certificate.

Return type:

Session

Returns:

A requests.Session with the specified certificate.