Create callable modules
Project description
modcall
Create callable modules
Usage
lib.py
import modcall
def hello(name: str) -> None:
print(f'Hello, {name}!')
modcall(__name__, hello)
app.py
import lib
lib('World')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modcall-0.1.0.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file modcall-0.1.0.tar.gz
.
File metadata
- Download URL: modcall-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.10 Linux/5.4.0-89-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a02a90ff1782018b2b29052a1cd05997cb326b35ed10ade987f3b982b3da648c |
|
MD5 | 7748efb80986eaa88cab5673bd706318 |
|
BLAKE2b-256 | dcbebc13549ef065d1fb05a9c6ce7c24e5d0562ed3453d1b02f665749806a145 |
File details
Details for the file modcall-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: modcall-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.10 Linux/5.4.0-89-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7412e325bd715489d8c8d72f68eba6c2c9197ea3befb84f850012640beb8a7b |
|
MD5 | 7bb829546d7dfd1435a7dabf6ffac772 |
|
BLAKE2b-256 | 89bfa662b5fe069ebe47780093d3d4d6483c58515ad0efd118dfac0832fe7a85 |