inspect2
Backport of the Python 3.6 inspect module to Python 2.7-3.5
Decision gist · record as of 2026-08-14
No, unless you are maintaining a legacy Python 2.7 or 3.2–3.5 codebase that requires Python 3.6 inspect features and cannot be upgraded. The package is abandoned (last release 2019-08-10) and will not receive security or compatibility updates. For new projects or those on modern Python versions, use the standard library inspect module directly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Designed for Python 2.7 and 3.2–3.5; on Python 3.6+ the standard library inspect module is preferred and should be used instead.
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last release was 2019-08-10 and the repository shows no recent activity.
License · maintenance · safety
PSF (permissive) — Licensed under the Python Software Foundation License (PSF), a permissive license. You may use, modify, and distribute the package freely, including in commercial projects, provided you retain the license notice.
last release 2019-08-10 (2561 days) · last repo commit 2019-08-10 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 123,598 downloads/mo, #11,904 on PyPI
Alternatives
Verify before relying
pip install inspect2
import inspect2
# Use inspect2 functions like the standard inspect module
print(inspect2.signature(some_function))- Whether inspect2 functions correctly on Python 3.5 and earlier in current environments, given the 2019 last release and lack of maintenance.
- Compatibility with modern Python tooling and test frameworks that may have evolved since 2019.
What it is and what it does
inspect2 is a backport of Python 3.6's inspect module to older Python versions (2.7 and 3.2–3.5). It allows developers working on legacy codebases to use the newer inspect API for introspecting functions, classes, methods, and other code objects without upgrading their Python runtime. The module aims to minimize divergence from the standard library source, making future backports easier to maintain.
The package has no runtime dependencies and installs as a pure-Python wheel. However, it has been abandoned since August 2019 and will not receive updates. It is most useful as a temporary compatibility shim for projects still supporting Python 2.7 or early Python 3 versions; for new projects or those targeting modern Python, the standard library inspect module should be used directly.
Use it for
- Backporting code that uses Python 3.6 inspect features to a Python 2.7 or 3.2–3.5 codebase without rewriting introspection logic.
- Providing a unified inspect API across multiple Python versions in a legacy application that cannot yet upgrade.
- Testing or validating function signatures and metadata in older Python environments during a gradual migration to newer versions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining a legacy Python 2.7 or 3.2–3.5 codebase that requires Python 3.6 inspect features and cannot be upgraded.
The package is abandoned (last release 2019-08-10) and will not receive security or compatibility updates. For new projects or those on modern Python versions, use the standard library inspect module directly.
Install
inspect2 on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2019-08-10 and the repository shows no recent activity. It is marked Alpha and will not receive updates for bugs or compatibility with modern Python versions.
Designed for Python 2.7 and 3.2–3.5; on Python 3.6+ the standard library inspect module is preferred and should be used instead.
License in practice
Licensed under the Python Software Foundation License (PSF), a permissive license. You may use, modify, and distribute the package freely, including in commercial projects, provided you retain the license notice.
Quickstart
pip install inspect2
import inspect2
# Use inspect2 functions like the standard inspect module
print(inspect2.signature(some_function))
Verify before relying
- Whether inspect2 functions correctly on Python 3.5 and earlier in current environments, given the 2019 last release and lack of maintenance.
- Compatibility with modern Python tooling and test frameworks that may have evolved since 2019.
Package facts
| License | PSF permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,561 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 123,598 / month, #11,904 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Software Development |
Evidence: inspect2-0.1.2-py2.py3-none-any.whl
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 › “inspect module backport”
- inspect2Provides the Python 3.6 inspect module API on Python 2.7 and 3.2–3.5,…
- backports_abcProvides backports of abstract base classes (Generator, Coroutine,…
- linecache2Provides a backport of Python's linecache module for older Python…
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 funcsigs · qualname · django-utils-six · typing-inspect · typing · importlib · typing-inspection · linecache2 · backports_abc · fissix