Quick Example
python
from monkeypatching import monkeypatch_module_object, monkeypatch_setattr
import json
Temporary attribute replacement
with monkeypatch_setattr(json, "loads", lambda x: {"mocked": True}):
pass
Recursive object replacement
with monkeypatch_module_object(json, json.dumps, lambda x, *args, **kwargs: "{}"):
pass
**Read the [full documentation](URL) for more details.**
Thank You
Initial release. Your feedback is invaluable; please try it out and let us know what you think.