importlib
Backport of importlib.import_module() from Python 2.7
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- 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 · maintenance · safety
(unclear) — 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.
last release 2016-08-31 (3635 days) · last repo commit 2016-12-19 · 1 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 341,274 downloads/mo, #7,405 on PyPI
Alternatives
Verify before relying
pip install importlib==1.0.4
import importlib
module = importlib.import_module('os')- 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.
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 on this page. Verify before relying on it.
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
importlib on PyPI
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.
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.
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')
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 | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,635 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 341,274 / month, #7,405 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: importlib-1.0.4.zip
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “importlib backport”
- importlibProvides importlib.import_module() for Python versions prior to 2.7,…
- backports.entry-points-selectableProvides forward-compatible access to selectable entry points on…
- importlib-resourcesProvides a backport of Python's standard library importlib.resources…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also importlib-resources · inspect2 · typing · backports.entry-points-selectable · pyasyncore · importlib-metadata · asyncio · linecache2 · django-utils-six · feedparser-sgmllib