qualname
__qualname__ emulation for older Python versions
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2015-04-11, no updates since then) and explicitly targets Python 2.6–3.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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires source files to be available on disk; does not work with dynamically generated or compiled code.
- Targets Python 2.6–3.4; behavior on modern Python versions is untested.
- High install friction: the package has been abandoned since its only release on 2015-04-11, with no updates since then.
License · maintenance · safety
BSD (permissive) — BSD license is permissive and imposes minimal restrictions on use or modification, making it safe to incorporate into most projects from a licensing standpoint.
last release 2015-04-11 (4143 days) · last repo commit 2020-05-25 · 27 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 395,769 downloads/mo, #6,979 on PyPI
Alternatives
Verify before relying
pip install qualname
from qualname import qualname
class C:
class D:
def g(self):
pass
print(qualname(C.D.g)) # 'C.D.g'- Whether the package functions correctly on Python 3.5+, given it was last released in 2015 and explicitly targets only up to 3.4.
- Whether source-code-based AST parsing handles all edge cases (decorators, metaclasses, dynamic definitions) reliably.
- Current real-world usage: the package has 395769 monthly downloads but was abandoned in 2015, suggesting either legacy dependents or inflated statistics.
What it is and 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—for example, 'C.D.g' for a method g inside a nested class D inside class C.
The package is designed for Python 2.6–3.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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2015-04-11, no updates since then) and explicitly targets Python 2.6–3.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.
Install
qualname on PyPI
Before you install
High install friction: the package has been abandoned since its only release on 2015-04-11, with no updates since then. It targets Python 2.6–3.4, versions now far outside modern support. Installation may succeed but the package is unmaintained and unlikely to receive bug fixes.
Requires source files to be available on disk; does not work with dynamically generated or compiled code. Targets Python 2.6–3.4; behavior on modern Python versions is untested.
License in practice
BSD license is permissive and imposes minimal restrictions on use or modification, making it safe to incorporate into most projects from a licensing standpoint.
Quickstart
pip install qualname
from qualname import qualname
class C:
class D:
def g(self):
pass
print(qualname(C.D.g)) # 'C.D.g'
Verify before relying
- Whether the package functions correctly on Python 3.5+, given it was last released in 2015 and explicitly targets only up to 3.4.
- Whether source-code-based AST parsing handles all edge cases (decorators, metaclasses, dynamic definitions) reliably.
- Current real-world usage: the package has 395769 monthly downloads but was abandoned in 2015, suggesting either legacy dependents or inflated statistics.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,143 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 395,769 / month, #6,979 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: qualname-0.1.0.tar.gz
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 › “qualified name emulation”
- qualnameProvides a `qualname()` function that emulates Python 3.3+'s…
- fqdnValidates fully-qualified domain names (FQDNs) against RFC 1123…
- codefindCodefind locates code objects by filename and qualified name,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also inspect2 · codefind · openqasm3 · eval-type-backport · enum-compat · pkgutil_resolve_name · nameof · astunparse · dataclasses · pep8-naming