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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semver-2.0.2.tar.gz.
File metadata
- Download URL: semver-2.0.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de697294d069551de081207951d7ebb6803ac0930949fbb5cefb580382f60643
|
|
| MD5 |
e38db2eaa3e6d6d2a8150bde783bc279
|
|
| BLAKE2b-256 |
ddb093af40ac7a5d45e410da95b744e562a2e0ba4a051df8d42ceea1b920dff8
|
File details
Details for the file semver-2.0.2.macosx-10.10-x86_64.exe.
File metadata
- Download URL: semver-2.0.2.macosx-10.10-x86_64.exe
- Upload date:
- Size: 64.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d556b44b19946fccb728611c4d108d4bc9a3eb5a0b2dc1ba13137d2e1298cf7
|
|
| MD5 |
d7dad283815795513bdd9223429f16eb
|
|
| BLAKE2b-256 |
89111d3e47b7611d385405608dd8671bbaeb6d334b2adc52919a0cc8c002ff6c
|