Skip to content
/ hooky Public

Python C extension designed to hook functions and class methods.

License

Notifications You must be signed in to change notification settings

ay0ks/hooky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hooky


Install:

make && sudo make install

Simple usage:

from Hooky import hook, hook_member, unhook

@hook(str)
def test(self, *args, **kwargs):
    print(self, args, kwargs)

str.test()
"123".test()
    
hook_member(int, "hooky_real", 123)
print(int.hooky_real, (0).hooky_real)

unhook(str)
unhook(int)

About

Python C extension designed to hook functions and class methods.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published