--- id: importlib version: "1.0.4" license: unclear license_treatment: unclear maintenance: abandoned --- # importlib — Backport of importlib.import_module() from Python 2.7 License: unclear · Maintenance: abandoned · Downloads: 341.3K/mo ## What it is and what it does This package is a backport of the importlib module from Python 2.7's standard library, intended for use with older Python releases that do not include importlib natively. It provides the import_module() function, which allows dynamic module imports by name at runtime. The code is copied directly from Python 2.7 standard library. The package is no longer maintained. Its own documentation states that because it targets only end-of-life Python versions, no further updates will be released. If you need bug fixes or compatibility patches, the maintainers recommend copying the files manually from Python 2.7 source. Modern Python versions include importlib in the standard library, making this backport unnecessary for any currently-supported environment. Use it for: - Running legacy code on systems still using Python versions prior to 2.7 that rely on importlib.import_module(). - Porting code to older environments where importlib is not yet available in the standard library. - Temporary compatibility layer when maintaining end-of-life Python deployments. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides importlib.import_module() for Python versions prior to 2.7, backporting the standard library's dynamic import function to older Python releases. No. This package targets only Python versions that are no longer supported and is itself abandoned. Modern Python includes importlib in the standard library. Install it only if you are maintaining legacy code on an end-of-life Python version and cannot upgrade—and even then, consider upgrading Python instead. ## Install pip install importlib uv add importlib poetry add importlib ## Installing importlib Before you install: High install friction: the package is abandoned (last release 2016-08-31, last commit 2016-12-19) and explicitly states it will receive no further maintenance. It targets Python versions that are no longer supported. License in practice: License treatment is unclear—no SPDX identifier or raw license text is provided in the package metadata, making it difficult to assess legal obligations before use. Quickstart: pip install importlib==1.0.4 import importlib module = importlib.import_module('os') This package is only applicable to Python versions prior to 2.7 or Python 3.0; modern Python versions include importlib in the standard library and do not need this backport. Verify before relying: - Whether this package is safe to use with any currently-supported Python version, or only with end-of-life releases. - What the actual license is, given the metadata provides no SPDX identifier or raw license text. - Whether the code has been modified from the Python 2.7 source or remains an exact copy. ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 341.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags importlib backport, dynamic module import, legacy python import, import_module compatibility, python backport import, legacy, abandoned [View on SkillFed](https://skillfed.io/packages/importlib) · [View on PyPI](https://pypi.org/project/importlib/)