xenopict.monkey module

exception xenopict.monkey.BoostError[source]

Bases: RuntimeError

class xenopict.monkey.BoostModulePatcher(mod=None, wrappers=None, depth=15)[source]

Bases: Patcher

after_call(result, args, kwargs, func)[source]
before_call(args, kwargs, func)[source]
Return type:

tuple[tuple, dict]

boost_wrapper(func)[source]
on_throw(func, args, kwargs, exec_info)[source]
register_before_call(callback)[source]
exception xenopict.monkey.BoostTypeError[source]

Bases: TypeError

class xenopict.monkey.Patch[source]

Bases: object

install()[source]
uninstall()[source]
class xenopict.monkey.Patcher(patches=None)[source]

Bases: Patch

append(patch)[source]
Return type:

None

install()[source]
replace(obj, attr, new)[source]
uninstall()[source]
class xenopict.monkey.Replace(obj, attr, replace_with)[source]

Bases: Patch

install()[source]
uninstall()[source]
wrap(replace_with)[source]
class xenopict.monkey.Wrap(obj, attr, replace_with)[source]

Bases: Replace

wrap(replace_with)[source]