Funkify modules so that they are callable
Project description
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funkify-0.4.5.tar.gz
(3.8 kB
view hashes)