dsss.common#

Common code and utilities.

Functions

add_footer_text(msg, texts)

format_exception(exc)

Like traceback.format_exception(), compatible with Python 3.9.

gen_error_message(code, text)

gen_error_response(code[, text])

handle_media_type(supported, value)

handle_query_params(url_class, expr, values)

Extend query with parts from expr, a " "-delimited string.

not_implemented_path(defaults, **values)

Generate footer text for not implemented path parts in values.

dsss.common.format_exception(exc) list[str]#

Like traceback.format_exception(), compatible with Python 3.9.

dsss.common.gen_error_message(code: int, text: str) ErrorMessage#
dsss.common.gen_error_response(code: int, text: str = '') SDMXResponse#
dsss.common.handle_media_type(supported: List[MediaType], value: str | None) str#
dsss.common.handle_query_params(url_class: Type[URL], expr: str, values: Mapping, not_implemented=typing.Collection[str]) dict#

Extend query with parts from expr, a “ “-delimited string.

dsss.common.not_implemented_path(defaults, **values)#

Generate footer text for not implemented path parts in values.

Classes

SDMXResponse(message[, status_code, ...])

Response containing a sdmx.message.Message.