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 | Provenance | Actions |
|---|---|---|---|---|
| cadule-0.0.1.tar.gz | 2.7 kB | Without provenance | Details for cadule-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cadule-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for cadule-0.0.1-py3-none-any.whl |
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
|
Security for cadule 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.