Skip to main content

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


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.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file semver-2.0.0.tar.gz.

File metadata

  • Download URL: semver-2.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for semver-2.0.0.tar.gz
Algorithm Hash digest
SHA256 107dd6413c3ef1854985d216700a9e5a27243d133e11a2fb43321d426d8d19b1
MD5 e1557911c0225d0bd509d2c2299a6b0b
BLAKE2b-256 55a5affea9953cbe9ab41d604fd8d134dfea0306c8bd803c691af85d5e6fb047

See more details on using hashes here.

Supported by

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