Making modules callable, for not very good reasons.
Project description
No more from <module> import <Module>!
Wouldn’t be nice if…
>>> import pprint >>> pprint("hello") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'module' object is not callable
Was possible? Well:
Add special sauce:
>>> import calldules
Import module(s), call:
>>> import pprint >>> pprint("hello")
????
'hello'
PROFIT!!!
Also works with such modules as flask, codecs, array, datetime, decimal, random, and many more!
No responsibility is taken for any grievous harm caused either by irresponsible or responsible use of calldules.
Inspired by Richard Jones’ talk Don’t Do This.
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 Distributions
calldules-1.0.1.zip
(5.6 kB
view hashes)
calldules-1.0.1.tar.gz
(3.0 kB
view hashes)