Skip to content

ay0ks/Hooky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published