Flexible version handling
Project Links
Meta
Author: Jim Porter
Requires Python: >=3.7
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
Programming Language
- Python :: 3
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
inversion
inversion is a Python library for handling software versions and specifiers,
adapted from the packaging package.
An Example
>>> from inversion import python
>>> v1 = python.Version('1.0')
>>> s1 = python.SpecifierSet('~=1.0')
>>> v1 in s1
True
>>> from inversion import loose
>>> v2 = loose.Version('1.0')
>>> s2 = loose.SpecifierSet('>=1.0')
>>> v2 in s2
True
Credits
The real credit for this package goes to the Python Packaging Authority.
License
This project is dual-licensed under the BSD and Apache licenses.