Version numbering for anarchists and software realists
Project Links
Meta
Maintainer: Chris Markiewicz
Classifiers
Development Status
- 6 - Mature
License
- OSI Approved :: Python Software Foundation License
Programming Language
- Python :: 3
looseversion - Version numbering for anarchists and software realists
A backwards/forwards-compatible fork of distutils.version.LooseVersion
,
for times when PEP-440 isn't what you need.
The goal of this package is to be a drop-in replacement for the original LooseVersion
.
It implements an identical interface and comparison logic to LooseVersion
.
The only major change is that a looseversion.LooseVersion
is comparable to a
distutils.version.LooseVersion
, which means tools should not need to worry whether
all dependencies that use LooseVersion have migrated.
If you are simply comparing versions of Python packages, consider moving to
packaging.version.Version,
which follows PEP-440.
LooseVersion
is better suited to interacting with heterogeneous version schemes that
do not follow PEP-440.
Installation
From PyPI
pip install looseversion
From source
git clone https://github.com/effigies/looseversion.git
pip install looseversion/
Usage
>>> from looseversion import LooseVersion
>>> LooseVersion("1.0.0") < LooseVersion("2.0.0")
True
>>> LooseVersion("1.0.0") < "2"
True
Jul 05, 2023
1.3.0
May 25, 2023
1.2.0
Feb 22, 2023
1.1.2
Feb 19, 2023
1.1.1
Feb 19, 2023
1.1.0
Jan 05, 2023
1.0.3
Oct 14, 2022
1.0.2
May 16, 2022
1.0.1
May 11, 2022
1.0.0
Wheel compatibility matrix
Files in release
No dependencies