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.2.0.tar.gz
(26.6 kB
view hashes)
Built Distribution
parver-0.2.0-py2.py3-none-any.whl
(12.7 kB
view hashes)
Close
Hashes for parver-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ae08a2629105fdb83e4971ae8a04f1de5a3803d1dd928f6e181aeadb398180 |
|
MD5 | 7beec03239685858607ce183f69ce175 |
|
BLAKE2b-256 | ed56d977e33e674fd7fc15cdfa419f303467c628083df0c18416468de7fe17d2 |