funkify
⚓︎
funkify ~ make modules callable
Functions:
-
default_export–Assign a function to a module's call attr
-
funkify–Assign a function to a module's call attr
default_export
⚓︎
Assign a function to a module's call attr
Parameters:
-
(funk⚓︎T) –function to be made callable
-
(key⚓︎str, default:None) –module name as it would appear in sys.modules
Returns:
-
T–Callable[..., T]: the function passed in
Raises:
-
AttributeError–if key is None and exported obj no module attr
-
ValueError–if key is not in sys.modules