PEP-440 version parsing, interpretation and manipulation
Project description
pepver
PEP-440 version parsing, interpretation and manipulation.
from pepver import Version
version = Version.parse("0!1.2.3.4a5.post6.dev7+8.9")
version.epoch # 0
version.release # 1, 2, 3, 4
version.major # 1
version.minor # 2
version.micro # 3
version.pre # a 5
version.post # 6
version.dev # 7
version.local # "8.9"
normalized = Version.parse("00!1.a-5-11dev.1")
str(normalized) # 0!1a5.post11.dev1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pepver-1.0.0rc2.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for pepver-1.0.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7c9439ac165c380d5a351a83145a59cfd06ce649def12155381e43867a582f |
|
MD5 | 9ae1b6bc39637d80999e8475a3f02f36 |
|
BLAKE2b-256 | 6e91b2876a7c597ba62416aee288d0597b705606d548cee50ec689bd71b764f7 |