Skip to main content

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:

  1. Add special sauce:

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

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

    'hello'
  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.

Project details


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 details)

Uploaded Source

calldules-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file calldules-1.0.1.zip.

File metadata

  • Download URL: calldules-1.0.1.zip
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for calldules-1.0.1.zip
Algorithm Hash digest
SHA256 ecb7656647708afeef9fb6180093363340d28d14e0b84321618d6504b8d4ba76
MD5 28622862a5a8503a881a386056cf53b5
BLAKE2b-256 bb40e2ed0dab99706e1bc82dd715048b10deca0416bbf0ade6e3fe9178c69676

See more details on using hashes here.

File details

Details for the file calldules-1.0.1.tar.gz.

File metadata

  • Download URL: calldules-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for calldules-1.0.1.tar.gz
Algorithm Hash digest
SHA256 13077009a0723b239e19fbdd6d031a1c2aad4d8f91d95b2b9199b3a15e8cc66e
MD5 180e7f37ab3617c83787cbecd30dfa4e
BLAKE2b-256 d18655e5d4866e8be2f49c58185a7f04ed51db1ba1895bfa91d42652016d0d66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page