Monkey Patching¶
-
kw.platform.monkey.
patch
(**patch_modules)[source]¶ Patch specified modules.
Patches all modules that have been provided as keyword arguments.
- Parameters
patch_modules –
keyword arguments of modules that should be patched. Use format
module=True
. Possible options are:requests
Usage:
from kw.platform import patch patch(requests=True)