This `importlib` package on PyPI is a backport of the `importlib.import_module()` function from Python 2.7. It was created to provide this functionality for Python versions prior to 2.7 and Python 3.0. This project has been archived since November 2017 and is no longer maintained, as the functionality it backported is standard in all currently supported Python versions. It is *not* the standard library `importlib` module fundamental to Python 3's import system.
pip install importlibVerified import paths — ran on the pinned version, not inferred.
A basic example demonstrating the use of `importlib.import_module()` from this backport. This package is only relevant for very old Python versions. For Python 3, `importlib` is a built-in standard library module.
For Python 2.7+ and Python 3.1+, `importlib` is a standard library. Do not install this PyPI package. Simply `import importlib` directly.
Migrate to a supported Python version (Python 3.x) where `importlib` is part of the standard library and actively maintained as part of the CPython project. The functionality provided by this backport (`importlib.import_module()`) is built-in.
Always confirm whether you need the standard library's `importlib` (which is highly likely for modern Python) or this long-abandoned backport (which is highly unlikely). For Python 3, simply `import importlib`.
When performing relative imports with `importlib.import_module()`, specify the `package` argument, e.g., `importlib.import_module('.relative_module', package='my_package')`.Update code to use `importlib.util.find_spec()` to obtain a `ModuleSpec`, and then `loader.exec_module()` for module execution.
No dependency data recorded yet.