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.0.tar.gz
(32.2 kB
view hashes)
Built Distribution
parver-0.3.0-py2.py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for parver-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9d19637c17819e276b5cf04e2dbfb81c4e2136da8873cc70dcd0e4fd3d14a3 |
|
MD5 | b310444673a050c91dfbe00f13c0895f |
|
BLAKE2b-256 | 8d804f4b70fe748dcb3ce9a2ebbdda9fb2d2840c1523275a7fcdbb93b5b019fd |