Registry / testing / uinspect

uinspect

JSON →
library0.0.5pypypiunverified

Ultra-fast inspect functions for Python, providing drop-in replacements for standard library inspect functions with significantly improved performance. Current version 0.0.5 is in early development, with a focus on speed. Release cadence is irregular.

pip install uinspect
INSTALL
IMPORT
SIG · UINSPECT
U
uinspect
testingpythonv0.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

inspect
import uinspect
import uinspect as inspect
uinspect is intended to be imported as a separate module. Shadowing the built-in 'inspect' removes access to the original module and can cause confusion.
getsource
from uinspect import getsource

Import uinspect and use its fast inspect functions. Replace standard library inspect calls with uinspect equivalents for performance.

import uinspect import math source = uinspect.getsource(math.sqrt) print(source)
Debug
Known issues
gotchauinspect may not support all objects that the standard inspect module does. Test thoroughly in your use case.
fix
Fall back to standard inspect for unsupported objects.
affects: all
gotchaThe package is in early development (v0.0.5). API changes are likely.
fix
Pin the version with constraints like uinspect>=0.0.5,<0.1.0
affects: all
deprecatedNo deprecations reported yet, but unstable API may deprecate functions without notice.
fix
Monitor GitHub releases and changelog.
affects: all
Upgrade
Version history
0.0.5latest on PyPI · released Apr 17, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
uinspect — pip install uinspect · libregistry