Parse and manipulate version numbers.
Project description
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 hashes)
Built Distribution
parver-0.3.1-py2.py3-none-any.whl
(14.9 kB
view hashes)
Close
Hashes for parver-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a548c51b006a2f2522b54293cbfd2514bffa10774ece8430c9964a20cbd8b4 |
|
MD5 | 2f9e0ff5fe8f0227777ade882a6341e5 |
|
BLAKE2b-256 | 1a79aea13e60a54e453df1a45383e92feda3b280e87ebded788c9c818d93e413 |