Compare package versions in all their varied glory.
Description
This module provides the compare() function which compares two
version strings and returns a negative value, zero, or a positive
value depending on whether the first string represents a version
number lower than, equal to, or higher than the second one, and
the key_compare() function which may be used as a key for e.g.
sorted().
This module does not strive for completeness in the formats of version strings that it supports. Some version strings sorted by its rules are:
- 0.1.0
- 0.2.alpha
- 0.2
- 0.2.1
- 0.2a
- 0.2a.1
- 0.2a3
- 0.2a4
- 0.2p3
- 1.0~bpo3
- 1.0.beta
- 1.0.beta.2
- 1.0.beta2
- 1.0.beta3
- 1.0
- 1.0.4
- 1:0.3
See the change log (the docs/changes.md file in the source
distribution) for the history of trivver development.
Contact
This module is developed in a Gitlab repository. The author is Peter Pentchev.
Metadata
Release files for trivver 2.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trivver-2.2.3.tar.gz | 19.2 kB | Without provenance | Details for trivver-2.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trivver-2.2.3-py3-none-any.whl | Python 3 | none | any | Details for trivver-2.2.3-py3-none-any.whl |
Total release size: 27.0 kB
Release files / trivver-2.2.3.tar.gz
| Download URL | trivver-2.2.3.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f450c705353e4b064fea4506dcf0cc9bb4dbce0bf4d6f57b877a445c035cbcb
|
|
BLAKE2b-256 checksum How to use checksums |
6016a13c52bafc5179e62bf7d3cced567139a01bfb6af0fa82ca6050a27db571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / trivver-2.2.3-py3-none-any.whl
| Download URL | trivver-2.2.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3e4a9a83c8f044b984b6905dcf5df7622585f206fb8abf69211d0fab6adac98
|
|
BLAKE2b-256 checksum How to use checksums |
7d8395877f901c0aee41a5ccdb196a8f3dd5d1199968b09b6541b12f094348f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for trivver 2.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.