Skip to main content

VerSort

License PyPI - Python Version PyPI CI codecov

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versort-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versort-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file versort-0.1.1.tar.gz.

File metadata

  • Download URL: versort-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for versort-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7483ab131b73415f377223c55fa9e0f57f0cb5ceaa18dfc49ba6866eaad67721
MD5 4aa2f44fbe9b1bfdc745e9e237eb3287
BLAKE2b-256 75afcd30f31a2d4bc10b0fbe671762620a0f05da182e652608db90b0f794a0d7

See more details on using hashes here.

File details

Details for the file versort-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: versort-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for versort-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f67c08e7e77c5b2de28f2bb316d892b9b3488888f41534bcfcf8b44b7a14d79c
MD5 617a7ba1a8718483df5a13e61775f9a7
BLAKE2b-256 4d2e51994520305a75a918a8f7debd2ed0615299185c5b0f24dc3a64dd3380be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page