Skip to main content

No project description provided

Project description

Panversion

panversion is a tool to manage and compare versions.

Philosophy

As a simple tool, panversion is pure-python. You can use a simple library or take its unque file to integrate it in your project.

Known versions

Panversion aims to be able to work a maximal number of version systems.

Right now, panversion is able to work with:

Usage

Comparison:

>>> from panversion import Version
>>> Version("1.0.3-alpha") < Version("1.0.3")   # Semantic form
True
>>> Version("1.0-a8") < Version("1.0-post1")   # Version specifiers form
True

Sorting:

>>> from panversion import Version
>>> sorted(["1.0.0-alpha", "1.0.0-beta", "1.0.0-rc.1", "1.0.0-alpha.beta", "1.0.0"], key=Version)
['1.0.0-alpha', '1.0.0-alpha.beta', '1.0.0-beta', '1.0.0-rc.1', '1.0.0']
>>> sorted(["0.9", "1.0rc1", "1.0a2", "1.0", "1.0a1", "1!0.8", "1.1a1", "1.0b1"], key=Version)
['0.9', '1.0a1', '1.0a2', '1.0b1', '1.0rc1', '1.0', '1.1a1', '1!0.8']

Normalization:

>>> from panversion import Version
>>> Version("1.2-rev.12")
1.2.post12

Project details


Download files

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

Source Distribution

panversion-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

panversion-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file panversion-0.1.0.tar.gz.

File metadata

  • Download URL: panversion-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for panversion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c96cda26b04474425543d1ff48314ffbf06ec1060c6edea05c428511ed20df8
MD5 084370baf1edc2a365a3dfe9f1c25b98
BLAKE2b-256 fbbbe7661c1b2b86ef9516e827ff05edee9112b40952a4556175d05270fe2078

See more details on using hashes here.

File details

Details for the file panversion-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: panversion-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for panversion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b95ca965c072d16ea4ee1403154a87541f453c9a7efd83e1aaf6a4e03a08dde
MD5 fcc5bf723f10ee77123738a129f1b187
BLAKE2b-256 6f24b997b26aeca1e20a5dbafb5fe33d6dd1d236514317b0654e98b2bdb640fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page