alexapy.aiohttp.helpers
¶
Various helper functions
Classes¶
BasicAuth
: Http basic authentication helper.ChainMapProxy
: Abstract base class for generic types.
- class alexapy.aiohttp.helpers.BasicAuth(login: str, password: str = '', encoding: str = 'latin1')¶
Http basic authentication helper.
Inheritance
- classmethod decode(auth_header: str, encoding: str = 'latin1') alexapy.aiohttp.helpers.BasicAuth ¶
Create a BasicAuth object from an Authorization HTTP header.
- encode() str ¶
Encode credentials.
- classmethod from_url(url: yarl.URL, *, encoding: str = 'latin1') Optional[alexapy.aiohttp.helpers.BasicAuth] ¶
Create BasicAuth from url.