alexapy.aiohttp.helpers

Various helper functions

Classes

class alexapy.aiohttp.helpers.BasicAuth(login: str, password: str = '', encoding: str = 'latin1')

Http basic authentication helper.

Inheritance

Inheritance diagram of BasicAuth

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.

class alexapy.aiohttp.helpers.ChainMapProxy(maps: Iterable[Mapping[str, Any]])

Inheritance

Inheritance diagram of ChainMapProxy

get(k[, d]) D[k] if k in D, else d.  d defaults to None.