medcat.utils.config_utils ========================= .. py:module:: medcat.utils.config_utils Exceptions ---------- .. autoapisummary:: medcat.utils.config_utils.IllegalConfigPathException Functions --------- .. autoapisummary:: medcat.utils.config_utils.temp_changed_config Module Contents --------------- .. py:function:: temp_changed_config(config, target, value) Context manager to change the config temporarily (within). :param config: The config in question. :type config: BaseModel :param target: The attribute name to change. :type target: str :param value: The temporary value to use. :type value: Any :raises IllegalConfigPathException: If no previous value is available. .. py:exception:: IllegalConfigPathException(target_path) Bases: :py:obj:`ValueError` Inappropriate argument value (of correct type). .. py:method:: __init__(target_path) Initialize self. See help(type(self)) for accurate signature. .. py:class:: __cause__ exception cause .. py:class:: __context__ exception context .. py:method:: __delattr__() Implement delattr(self, name). .. py:method:: __dir__() Default dir() implementation. .. py:method:: __eq__() Return self==value. .. py:method:: __format__() Default object formatter. .. py:method:: __ge__() Return self>=value. .. py:method:: __getattribute__() Return getattr(self, name). .. py:method:: __gt__() Return self>value. .. py:method:: __hash__() Return hash(self). .. py:method:: __le__() Return self<=value. .. py:method:: __lt__() Return self