Skip to main content

Load python module, or member of module from string.

Example Usage

Load module, or member of module from string.

from dynamic_load import dynamic_load
dattime_module =  dynamic_load("datetime") # Load datetime module
dattime_module.datetime.now()
time_function = dynamic_load("time.time")
time_function()

Execute functionn of module from string.

from dynamic_load import dynamic_execute
answer =  dynamic_execute("datetime.datetime.now")
answer = dynamic_execute("time.sleep", 10) # execute(time.sleep(10))

Convert function as string.

from dynamic_load immport dynamic_string
string = dynamic_string(datetime.datetime.now)

Metadata

Release files for dynamic-load 0.0.5

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

Source distribution (sdist)

Source distribution for dynamic-load 0.0.5
File Size Uploaded
dynamic_load-0.0.5.tar.gz 3.4 kB Details

Release files / dynamic_load-0.0.5.tar.gz

Download URL dynamic_load-0.0.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ba209a00edff4fcbe270b4cab3b48ac6253786ac45dd7571f0da0b61bd747a08
BLAKE2b-256 checksum
How to use checksums
32e6a2134b66b61b27df3eb2acde1b11126979aeee93d13d215f67176add9d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

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