RequestsManager

class app.util.requests.manager.RequestsManager[source]

Bases: object

Inheritance diagram of RequestsManager

Inheritance Diagram for RequestsManager

Methods

__init__()

human_readable_key_fn(request[, ...])

initialize(config, *[, install])

install()

Install the requests_cache with the given configuration.

session()

__init__() None[source]
Return type:

None

static __new__(cls, *args, **kwargs) Self[source]
Return type:

Self

human_readable_key_fn(request: Request | PreparedRequest | CachedRequest, ignored_parameters: Iterable[str] | None = None, match_headers: Iterable[str] | None | bool = False, serializer: Any = None, **request_kwargs) str[source]
Parameters:
Return type:

str

initialize(config: RequestsConfig | dict[str, Any], *, install: bool = False) None[source]
Parameters:
Return type:

None

install() None[source]

Install the requests_cache with the given configuration.

Return type:

None

session() Any[source]
Return type:

Any