Python package to work with Semantic Versioning (http://semver.org/)
Project description
Simple module for comparing versions as noted at semver.org.
This module provides just couple of functions, main of which are:
>>> import semver >>> semver.compare("1.0.0", "2.0.0") 1 >>> semver.compare("2.0.0", "1.0.0") -1 >>> semver.compare("2.0.0", "2.0.0") 0 >>> semver.match("2.0.0", ">=1.0.0") True >>> semver.match("1.0.0", ">1.0.0") False
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
semver-2.0.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for semver-2.0.2.macosx-10.10-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d556b44b19946fccb728611c4d108d4bc9a3eb5a0b2dc1ba13137d2e1298cf7 |
|
MD5 | d7dad283815795513bdd9223429f16eb |
|
BLAKE2b-256 | 89111d3e47b7611d385405608dd8671bbaeb6d334b2adc52919a0cc8c002ff6c |