Cadule
Cadule (short for Ca[llableMo]dule) is a Python library that transforms regular modules into callable objects. By using the decorators provided by cadule, you can make entire modules callable just like functions.
Usage
Example File: hello.py
import cadule
@cadule
def __call__():
print("Hello World!")
Python REPL Interaction
>>> import hello
>>> hello()
Hello World!
>>> # Now the entire hello module has become a callable object
>>> callable(hello)
True
>>> # You can still access other attributes in the module (if any exist)
As shown above, by simply applying the decorator, the entire hello module becomes a callable object, and calling it executes the decorated __call__ function.
Metadata
Release files for cadule 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cadule-0.0.1.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cadule-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / cadule-0.0.1.tar.gz
| Download URL | cadule-0.0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95aa7c467c67c19c392d091f0567a5a2d883cf35b69c64abfb668f4f77867b5e
|
|
BLAKE2b-256 checksum How to use checksums |
42b1d09010dcce164eeda7ceec92d3cca739ee30c0b1d6203b9589819b57a8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / cadule-0.0.1-py3-none-any.whl
| Download URL | cadule-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
265ff4b32db09adced2b0111fd6e283a14f24340e0a9235c74c4b3f944f33916
|
|
BLAKE2b-256 checksum How to use checksums |
1e3de219e5fa6792de1aaf3826398014365ea880a4e17c0bfbb797e4d2ea24ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|