px
pypx

packaging

v26.4

Core utilities for Python packages

137 KB Python 3.10+ py3-none-anyApache-2.0 OR BSD-2-Clause
Diff
$ uv add packaging

packaging

Reusable core utilities for various Python Packaging interoperability specifications.

This library provides utilities that implement the interoperability specifications which have clearly one correct behaviour (eg: 440) or benefit greatly from having a single shared implementation (eg: 425).

The packaging project includes the following: version handling, specifiers, markers, requirements, tags, metadata, lockfiles, utilities.

Documentation

The documentation_ provides information and the API for the following:

  • Version Handling
  • Specifiers
  • Markers
  • Licenses
  • Requirements
  • Metadata
  • Tags
  • Lockfiles (pylock)
  • Direct URL helpers
  • Dependency groups
  • Errors
  • Utilities

Installation

Use pip to install these utilities:

pip install packaging

The packaging library uses calendar-based versioning (YY.N).

Discussion

If you run into bugs, you can file them in our issue tracker_.

You can also ask questions or get involved in the Packaging category_ on discuss.python.org.

Code of Conduct

Everyone interacting in the packaging project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PSF Code of Conduct_.

Contributing

The CONTRIBUTING.rst file outlines how to contribute to this project as well as how to report a potential security issue. The documentation for this project also covers information about project development_ and security_.

Project History

Please review the CHANGELOG.rst file or the Changelog documentation_ for recent changes and project history.

Details

Version
26.4
License
Apache-2.0 OR BSD-2-Clause
Python
>=3.10
Maintainer
Donald Stufft <[email protected]>

Release Cadence

8
releases in the past year
avg 83 days between releases

Maintainers