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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for semver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ab39de5d0781aa569cb1d55e9867c19be7a4886740c9bbc778791a287abdf7be
MD5 8f16b119da8a4d4675c16123499573ab
BLAKE2b-256 86357a319faed048555cbd9fe7ca17cccfc09b3de77cbf19b174e3c1929d8ae9

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