store_function_input¶
-
utilipy.decorators.
store_function_input
(function: Optional[Callable] = None, *, store_inputs: bool = True, _doc_style: str = 'numpy', _doc_fmt: Dict[str, Any] = {})[source]¶ Store Function Inputs.
Store the function inputs as a BoundArguments.
- Parameters
- functionT.Callable or None, optional
the function to be decoratored if None, then returns decorator to apply.
- store_inputsbool, optional
whether to return all the inputs to the function as a dictionary
- Returns
- wrapperT.Callable
Wrapper for
function
that can store function inputs in a BoundArguments instance. Includes the original function in a method__wrapped__
- Other Parameters
- _doc_style: str or formatter, optional
default ‘numpy’ parameter to
utilipy.wraps
- _doc_fmt: dict, optional
default None parameter to
utilipy.wraps