PyVer
Python PEP-440 Version Parser
This package allows for parsing Python PEP-440 version numbers and for comparisons between PEP-440 version numbers.
Usage
[]
= "1"
The following is an example for initilizing and comparing two version strings
use PackageVersion;
let a = new.unwrap;
let b = new.unwrap;
assert_eq!;
Comparing single version components
use PackageVersion;
let a = new.unwrap;
let b = new.unwrap;
// Check that both have the same dev version
assert_eq!;
Seperation of version identifiers
use PackageVersion;
let version = new.unwrap;
println!;
// > 1
println!;
// > 2
println!;
// > Some(DevHead { dev_num: Some(2) })
See more examples at the docs
Contribution
For now Contributions will be quite loose.