Skip to main content

Python package to work with Semantic Versioning (http://semver.org/)

Project description

https://travis-ci.org/k-bx/python-semver.svg?branch=master

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

semver-2.0.2.macosx-10.10-x86_64.exe (64.5 kB view details)

Uploaded Source

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

Hashes for semver-2.0.2.tar.gz
Algorithm Hash digest
SHA256 de697294d069551de081207951d7ebb6803ac0930949fbb5cefb580382f60643
MD5 e38db2eaa3e6d6d2a8150bde783bc279
BLAKE2b-256 ddb093af40ac7a5d45e410da95b744e562a2e0ba4a051df8d42ceea1b920dff8

See more details on using hashes here.

File details

Details for the file semver-2.0.2.macosx-10.10-x86_64.exe.

File metadata

File hashes

Hashes for semver-2.0.2.macosx-10.10-x86_64.exe
Algorithm Hash digest
SHA256 5d556b44b19946fccb728611c4d108d4bc9a3eb5a0b2dc1ba13137d2e1298cf7
MD5 d7dad283815795513bdd9223429f16eb
BLAKE2b-256 89111d3e47b7611d385405608dd8671bbaeb6d334b2adc52919a0cc8c002ff6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page