funkify¶
Install: pip install funkify
Make a module/package/script callable.
Usage:¶
1) Write a file called a_module.py
with some function and decorate said function with funkify¶
import funkify
@funkify
def some_funk_name_doesnt_matter():
return 'howdy'
2) Import a_module and call it like you would a function!¶
import a_module
a_module.some_funk_name_doesnt_matter_what_it_is() # returns 'howdy'
a_module() # ALSO returns 'howdy'