Skip to main content

Parse and manipulate version numbers.

Project description

PyPI Documentation Status CI Status Test coverage MIT License

parver

parver allows parsing and manipulation of PEP 440 version numbers.

Example

>>> Version.parse('1.3').bump_dev()
<Version '1.3.dev0'>
>>> v = Version.parse('v1.2.alpha-3')
>>> v.is_alpha
True
>>> v.pre
3
>>> v
<Version 'v1.2.alpha-3'>
>>> v.normalize()
<Version '1.2a3'>

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

parver-0.3.1.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

parver-0.3.1-py2.py3-none-any.whl (14.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file parver-0.3.1.tar.gz.

File metadata

  • Download URL: parver-0.3.1.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for parver-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c902e0653bcce927cc156a7fd9b3a51924cbce3bf3d0bfd49fc282bfd0c5dfd3
MD5 ce956bb18fc16977c205b88d601a2ea2
BLAKE2b-256 dd7d5e4ad784f4cdabab244487f543876a8887f28f162bbb925f8b73b4411dfb

See more details on using hashes here.

Provenance

File details

Details for the file parver-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: parver-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for parver-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 41a548c51b006a2f2522b54293cbfd2514bffa10774ece8430c9964a20cbd8b4
MD5 2f9e0ff5fe8f0227777ade882a6341e5
BLAKE2b-256 1a79aea13e60a54e453df1a45383e92feda3b280e87ebded788c9c818d93e413

See more details on using hashes here.

Provenance

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