Skip to main content

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


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)

Uploaded Source

Built Distribution

modcall-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for modcall-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a02a90ff1782018b2b29052a1cd05997cb326b35ed10ade987f3b982b3da648c
MD5 7748efb80986eaa88cab5673bd706318
BLAKE2b-256 dcbebc13549ef065d1fb05a9c6ce7c24e5d0562ed3453d1b02f665749806a145

See more details on using hashes here.

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

Hashes for modcall-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7412e325bd715489d8c8d72f68eba6c2c9197ea3befb84f850012640beb8a7b
MD5 7bb829546d7dfd1435a7dabf6ffac772
BLAKE2b-256 89bfa662b5fe069ebe47780093d3d4d6483c58515ad0efd118dfac0832fe7a85

See more details on using hashes here.

Supported by

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