{"id":27499,"library":"uinspect","title":"uinspect","description":"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.","status":"active","version":"0.0.5","language":"python","source_language":"en","source_url":"https://github.com/Kuree/uinspect","tags":["inspect","performance","utility","fast","introspection"],"install":[{"cmd":"pip install uinspect","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"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.","wrong":"import uinspect as inspect","symbol":"inspect","correct":"import uinspect"},{"note":"","wrong":"","symbol":"getsource","correct":"from uinspect import getsource"}],"quickstart":{"code":"import uinspect\nimport math\n\nsource = uinspect.getsource(math.sqrt)\nprint(source)","lang":"python","description":"Import uinspect and use its fast inspect functions. Replace standard library inspect calls with uinspect equivalents for performance."},"warnings":[{"fix":"Fall back to standard inspect for unsupported objects.","message":"uinspect may not support all objects that the standard inspect module does. Test thoroughly in your use case.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin the version with constraints like uinspect>=0.0.5,<0.1.0","message":"The package is in early development (v0.0.5). API changes are likely.","severity":"gotcha","affected_versions":"all"},{"fix":"Monitor GitHub releases and changelog.","message":"No deprecations reported yet, but unstable API may deprecate functions without notice.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Check the version and available attributes via dir(uinspect). Use 'from uinspect import getsource' if available.","cause":"Typo or version mismatch. The function may have been renamed or not yet implemented.","error":"AttributeError: module 'uinspect' has no attribute 'getsource'"},{"fix":"Use standard inspect for that specific function: from inspect import getsourcelines","cause":"uinspect may not implement all standard inspect functions. This function might be missing.","error":"ImportError: cannot import name 'getsourcelines' from 'uinspect'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}