$npx skillfedfor your agent

inspect2

Backport of the Python 3.6 inspect module to Python 2.7-3.5

SkipPyPI Software DevelopmentReleased Aug 2019123.6K downloads / moPSFPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — inspect2-0.1.2-py2.py3-none-any.whl
v0.1.2 · released 2019-08-10

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

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.
Same gist for agents: .md · .json

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.

Skip

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

LicensePSF permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,561 days since the last release
Last repo commit
First released
Downloads123,598 / month, #11,904 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
inspect module backportpython 2.7 inspect compatibilityfunction introspection older pythoninspect api python 3.6 backportreflection utilities python 2code inspection compatibility layer
Topics
backportlegacy-python
PyPI keywords
inspectinspectionbackport

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also funcsigs · qualname · django-utils-six · typing-inspect · typing · importlib · typing-inspection · linecache2 · backports_abc · fissix