VerSort
Sort versions according to different versioning schemas.
Install
To use as a CLI app:
pipx install versort
To use as a library:
pip install versort
Usage
Supported version algorithms
As a library
from versort import get_sorter
sorter = get_sorter("pep440")()
print(sorter.sort("v1", "2a1", "2"))
CLI
You can call versort directly, or as a Python module with python -m versort.
➤ echo 2 2a1 v1 | versort --stdin pep440
v1
2a1
2
➤ versort --reverse pep440 2 2a1 v1
2
2a1
v1
➤ versort --first pep440 2 2a1 v1
v1
➤ python -m versort --reverse --first pep440 2 2a1 v1
2
Metadata
Release files for versort 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| versort-0.1.1.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| versort-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / versort-0.1.1.tar.gz
| Download URL | versort-0.1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7483ab131b73415f377223c55fa9e0f57f0cb5ceaa18dfc49ba6866eaad67721
|
|
BLAKE2b-256 checksum How to use checksums |
75afcd30f31a2d4bc10b0fbe671762620a0f05da182e652608db90b0f794a0d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / versort-0.1.1-py3-none-any.whl
| Download URL | versort-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f67c08e7e77c5b2de28f2bb316d892b9b3488888f41534bcfcf8b44b7a14d79c
|
|
BLAKE2b-256 checksum How to use checksums |
4d2e51994520305a75a918a8f7debd2ed0615299185c5b0f24dc3a64dd3380be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|