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.5.tar.gz
(26.9 kB
view details)
Built Distribution
parver-0.5-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file parver-0.5.tar.gz
.
File metadata
- Download URL: parver-0.5.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fde1e6bb9ce9f07e08e9c4bea8d8825c5e78e18a0052d02e02bf9517eb4777 |
|
MD5 | 9868dd676bd453f4628708d3d95c7986 |
|
BLAKE2b-256 | cce51c774688a90f0b76e872e30f6f1ba3f5e14056cd0d96a684047d4a986226 |
File details
Details for the file parver-0.5-py3-none-any.whl
.
File metadata
- Download URL: parver-0.5-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2281b187276c8e8e3c15634f62287b2fb6fe0efe3010f739a6bd1e45fa2bf2b2 |
|
MD5 | e0faa4b2264d504fa6f1cc96849a6722 |
|
BLAKE2b-256 | 0f4cf98024021bef4d44dce3613feebd702c7ad8883f777ff8488384c59e9774 |