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.1.tar.gz
(2.0 kB
view details)
File details
Details for the file semver-2.0.1.tar.gz
.
File metadata
- Download URL: semver-2.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0bf38fe0c178e53343e2a8161a2c1230cf4bae8dd1f74cf422e1f16fd1e7ef7 |
|
MD5 | 8833aed437c0ef85b056352a9982d730 |
|
BLAKE2b-256 | 60ec9d6d35be1bef24f89dca804eb6ec19559ebc82932bcc68c61f46ff7e6308 |