Skip to main content

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

Project description

![Travis CI](https://travis-ci.org/k-bx/python-semver.svg?branch=master)

Simple module for comparing versions as noted at [semver.org](http://semver.org/).

This module provides just couple of functions, main of which are:

`python >>> 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 `

Installation

For Python 2:

` pip install semver `

For Python 3:

` pip3 install semver `

Homepage at PyPi: https://pypi.python.org/pypi/semver

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.1.1.tar.gz (2.2 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.1.1.macosx-10.10-x86_64.exe (64.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for semver-2.1.1.tar.gz
Algorithm Hash digest
SHA256 f1dbbfbdca14451aa22a06ec619f53aaef04579153934fe1006aca8d123c4d39
MD5 03583c67c94da65922aff350fcea7824
BLAKE2b-256 293f67a024b8ec3107b8b0216453b9d4fe5986440d42b74ed530c7c0800d1661

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for semver-2.1.1.macosx-10.10-x86_64.exe
Algorithm Hash digest
SHA256 088cba17a63a06c51ccb12e55828b0e711bd2e196798a5dd4e03866aaa872fee
MD5 41c6cd11cb3dba4ca16b68bfcad485fa
BLAKE2b-256 3e0ee91615ffdcbe3c6811d93fc7402f17de90c3443c79fe0764b8994c7fc75c

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