auth.session
¶
Module Contents¶
Classes¶
Attributes¶
- auth.session.log¶
- class auth.session.BaseSession(session=None, timeout=10, verify_ssl=True)¶
- Parameters:
session (Optional[requests.Session]) –
timeout (float) –
verify_ssl (bool) –
- abstract property session: requests.Session | None¶
- Return type:
Optional[requests.Session]
- __metaclass__¶
- abstract async post(url, headers, data, timeout, params)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Optional[Union[bytes, str, IO[AnyStr]]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
- Return type:
requests.Response
- abstract async get(url, headers, timeout, params, stream, auto_decompress)¶
- Parameters:
url (str) –
headers (Optional[Mapping[str, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
stream (bool) –
auto_decompress (bool) –
- Return type:
requests.Response
- abstract async patch(url, headers, data, timeout, params)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Optional[Union[bytes, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
- Return type:
requests.Response
- abstract async put(url, headers, data, timeout)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Union[bytes, str, IO[Any]]) –
timeout (float) –
- Return type:
requests.Response
- abstract async delete(url, headers, params, timeout)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
params (Optional[Mapping[str, Union[int, str]]]) –
timeout (float) –
- Return type:
requests.Response
- abstract async head(url, headers, timeout, params, allow_redirects)¶
- Parameters:
url (str) –
headers (Optional[Mapping[str, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
allow_redirects (bool) –
- Return type:
requests.Response
- abstract async request(method, url, headers, auto_raise_for_status=True, **kwargs)¶
- Parameters:
method (str) –
url (str) –
headers (Mapping[str, str]) –
auto_raise_for_status (bool) –
kwargs (Any) –
- Return type:
requests.Response
- abstract async close()¶
- Return type:
None
- auth.session.Timeout¶
- class auth.session.SyncSession(session=None, timeout=10, verify_ssl=True)¶
Bases:
BaseSession
- Parameters:
session (Optional[requests.Session]) –
timeout (float) –
verify_ssl (bool) –
- property google_api_lock: threading.RLock¶
- Return type:
threading.RLock
- property session: requests.Session¶
- Return type:
requests.Session
- _google_api_lock¶
- async post(url, headers, data=None, timeout=10, params=None)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Optional[Union[bytes, str, IO[AnyStr]]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
- Return type:
requests.Response
- async get(url, headers=None, timeout=10, params=None, stream=False, auto_decompress=True)¶
- Parameters:
url (str) –
headers (Optional[Mapping[str, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
stream (bool) –
auto_decompress (bool) –
- Return type:
requests.Response
- async patch(url, headers, data=None, timeout=10, params=None)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Optional[Union[bytes, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
- Return type:
requests.Response
- async put(url, headers, data, timeout=10)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
data (Union[bytes, str, IO[Any]]) –
timeout (float) –
- Return type:
requests.Response
- async delete(url, headers, params=None, timeout=10)¶
- Parameters:
url (str) –
headers (Mapping[str, str]) –
params (Optional[Mapping[str, Union[int, str]]]) –
timeout (float) –
- Return type:
requests.Response
- async head(url, headers=None, timeout=10, params=None, allow_redirects=False)¶
- Parameters:
url (str) –
headers (Optional[Mapping[str, str]]) –
timeout (float) –
params (Optional[Mapping[str, Union[int, str]]]) –
allow_redirects (bool) –
- Return type:
requests.Response
- async request(method, url, headers, auto_raise_for_status=True, **kwargs)¶
- Parameters:
method (str) –
url (str) –
headers (Mapping[str, str]) –
auto_raise_for_status (bool) –
kwargs (Any) –
- Return type:
requests.Response
- async close()¶
- Return type:
None