skip to navigation
skip to content

Not Logged In

calldules 1.0.1

Making modules callable, for not very good reasons.

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:

  1. Add special sauce:

    >>> import calldules
  2. Import module(s), call:

    >>> import pprint
    >>> pprint("hello")
  3. ????

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

File Type Py Version Uploaded on Size
calldules-1.0.1.tar.gz (md5) Source 2014-02-23 2KB (md5) Source 2014-02-23 5KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 78 downloads in the last week
  • 283 downloads in the last month