Skip to main content

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.

Release files for calldules 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for calldules 1.0.1
File Size Uploaded
calldules-1.0.1.zip 5.6 kB Details
calldules-1.0.1.tar.gz 3.0 kB Details

Release files / calldules-1.0.1.zip

Download URL calldules-1.0.1.zip
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ecb7656647708afeef9fb6180093363340d28d14e0b84321618d6504b8d4ba76
BLAKE2b-256 checksum
How to use checksums
bb40e2ed0dab99706e1bc82dd715048b10deca0416bbf0ade6e3fe9178c69676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / calldules-1.0.1.tar.gz

Download URL calldules-1.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
13077009a0723b239e19fbdd6d031a1c2aad4d8f91d95b2b9199b3a15e8cc66e
BLAKE2b-256 checksum
How to use checksums
d18655e5d4866e8be2f49c58185a7f04ed51db1ba1895bfa91d42652016d0d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page