packaging-legacy
Core utilities for legacy Python packages
What it is and what it does
packaging-legacy is a compatibility shim that restores APIs removed from the main packaging library. It provides `LegacyVersion` and a `parse` function for handling version strings in older formats that the current packaging library no longer supports. The package depends only on packaging itself and is marked production-stable across Python 3.7–3.11.
You would use this only if your codebase or dependencies still reference `LegacyVersion` or need to parse legacy version strings. It is not a replacement for packaging—it is a narrow bridge for code that was written against older packaging APIs and cannot be easily updated.
Use it for:
- Parsing version strings from legacy Python packages that predate modern standardization.
- Maintaining code that imports `LegacyVersion` directly without refactoring to current version handling.
- Supporting old package metadata or version formats in a tool or library that cannot migrate immediately.
- Bridging a dependency tree where some transitive packages still expect the old packaging API.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides access to deprecated Python packaging APIs—specifically `LegacyVersion` and a version parser—that were removed from the main packaging library.
Yes, but only if you have a specific need: code that imports `LegacyVersion` or relies on legacy version parsing. The package is stable and permissively licensed, but dormant—no active maintenance since mid-2024. Do not install it as a general dependency; install it only to unblock a concrete compatibility issue with legacy version formats.
Install
packaging-legacy on PyPI
pip
pip install packaging-legacyuv
uv add packaging-legacypoetry
poetry add packaging-legacyInstalling packaging-legacy
Before you install
Low install friction with a single dependency on packaging. Maintenance is dormant—last release was 2023-11-28 and no commits since 2024-08-19—so expect no active support or updates.
License in practice
Licensed under permissive terms (Apache and BSD), so no restrictions on commercial or proprietary use.
Quickstart
pip install packaging-legacy
from packaging_legacy.version import parse, LegacyVersion
v = parse('1.0-final')
print(isinstance(v, LegacyVersion))
Verify before relying
- Whether legacy version formats this package handles are still encountered in modern Python ecosystems or are purely historical.
- Compatibility guarantees with future versions of the packaging library that this package depends on.
- Whether the non-standard version formats supported by LegacyVersion follow any documented specification.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — packaging |
| Maintenance | dormant — 990 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 269,571/month — #8,257 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: packaging_legacy-23.0.post0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
packversProvides core utilities for Python package…
permissive · top 15,000 on PyPI
modal-clientThis package is a deprecated compatibility shim…
unclear · top 15,000 on PyPI
sail-sdksail-sdk is a deprecated compatibility shim…
unclear · top 15,000 on PyPI
devpi-commonProvides shared utility functions for…
permissive · top 15,000 on PyPI
verlib2Provides standalone version comparison and…
unclear · top 15,000 on PyPI
packagingProvides reusable utilities for Python…
permissive · top 100 on PyPI
fastapi-slimThis package is a deprecated migration shim…
permissive · top 15,000 on PyPI
distributeDistribute is a legacy compatibility wrapper…
permissive · top 15,000 on PyPI
pypiThis package is a historical reference to…
permissive · top 15,000 on PyPI
legacy-api-wrapProvides a decorator to wrap legacy function…
copyleft · top 5,000 on PyPI