pydoc > packaging

๐Ÿ“› NAME

packaging

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Parse a version stringpackaging.version.parse("21.3")๐Ÿ“ฅ Returns a Version object from a PEP 440 version string
Compare two versionsVersion("21.3") > Version("20.0")๐Ÿ” Supports standard comparison operators for version ordering
Parse a requirement specifierpackaging.requirements.Requirement("requests>=2.0")๐Ÿ“‹ Breaks a requirement string into name, extras, specifier set, and markers
Check version against specifierSpecifierSet(">=1.0,<3.0").contains(Version("2.5"))โœ… Test if a version satisfies a set of version specifiers
Evaluate a PEP 508 markerpackaging.markers.Marker("python_version >= '3.6'").evaluate()๐Ÿงช Check if the current environment matches a marker expression
Get platform compatibility tagspackaging.tags.sys_tags()๐Ÿท๏ธ Generate a sequence of compatible wheel tags for the current platform

๐Ÿ“– DESCRIPTION

# 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.

๐Ÿ“ฆ PACKAGE CONTENTS

๐Ÿ“Š DATA

๐Ÿ”– VERSION

21.3

โœ๏ธ AUTHOR

Donald Stufft and individual contributors

๐Ÿ“ FILE

/usr/lib/python3/dist-packages/packaging/__init__.py

packaging
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“– DESCRIPTION ๐Ÿ“ฆ PACKAGE CONTENTS ๐Ÿ“Š DATA ๐Ÿ”– VERSION โœ๏ธ AUTHOR ๐Ÿ“ FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-02 19:11 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!