{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Provides a `qualname()` function that emulates Python 3.3+'s `__qualname__` attribute for classes and nested functions in older Python versions by parsing source code and traversing the AST.","skillfed_tags":["legacy-python","backport","introspection"],"use_cases":["Introspect qualified names of nested classes and methods in Python 2 or early Python 3 code for logging or debugging.","Support legacy Python 2 codebases that require qualified name information for reflection or dynamic dispatch.","Provide a uniform API for accessing qualified names across Python 2 and 3.3+ in projects that must support both.","Enable error reporting or stack trace formatting that includes the full qualified name of a function or class."],"what_it_does":"qualname is a backport shim that adds the `__qualname__` attribute (introduced in Python 3.3) to classes and functions in older Python versions. It works by inspecting and parsing the source code of the module containing the target object, then walking its abstract syntax tree to determine the fully qualified name\u2014for example, 'C.D.g' for a method g inside a nested class D inside class C.\n\nThe package is designed for Python 2.6\u20133.4 codebases that need to introspect nested class and function names before `__qualname__` became standard. It has no runtime dependencies and relies entirely on the `ast` module and source file availability. However, the package has been unmaintained since 2015 and is incompatible with modern Python versions.","worth_installing":"No. The package is abandoned (last release 2015-04-11, no updates since then) and explicitly targets Python 2.6\u20133.4, all of which are end-of-life. Modern Python has `__qualname__` built-in. Install only if you are maintaining legacy Python 2 code with no path to upgrade and have verified the package works in your specific environment."},"id":"qualname","links":{"html":"https://skillfed.io/packages/qualname","md":"https://skillfed.io/packages/qualname.md","pypi":"https://pypi.org/project/qualname/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2015-04-11","license_spdx":null,"license_treatment":"permissive","name":"qualname","python_support":"unspecified","summary":"__qualname__ emulation for older Python versions"},"popularity":{"monthly_downloads":395769,"position":6979,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.0"}
