Dynamically load modules for Python
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dynamic_load-0.0.5.tar.gz | 3.4 kB | Without provenance | Details for dynamic_load-0.0.5.tar.gz |
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
|
Security for dynamic-load 0.0.5
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.