packaging
| Use Case | Command | Description |
|---|---|---|
| 🔍 Get installed version | import packaging; packaging.__version__ | Retrieve the current version of the packaging library |
| 📌 Parse a version string | from packaging.version import Version; v = Version("1.0.0") | Create a normalized version object from a string |
| 🏷️ Check specifier matching | from packaging.specifiers import SpecifierSet; SpecifierSet(">=1.0,= '3.6'").evaluate() | Test an environment marker against the current Python |
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
__about___manylinux_musllinux_structuresmarkersrequirementsspecifierstagsutilsversion__all__ | ['__title__', '__summary__', '__uri__', '__version__', '__au...] |
__copyright__ | '2014-2019 Donald Stufft and individual contributors' |
__email__ | donald AT stufft.io |
__license__ | 'BSD-2-Clause or Apache-2.0' |
__summary__ | 'Core utilities for Python packages' |
__title__ | 'packaging' |
__uri__ | https://github.com/pypa/packaging |
21.3
Donald Stufft and individual contributors
/usr/lib/python3/dist-packages/packaging/__init__.py
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 11:08 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format