Skip to main content

Python package that mimics npm’s “semver” package

Project description

Python package for semantic versioning 2.0.0 that mimics the node semver package. The interface is designed to be more “pythonic” and does not match semver’s logic 100%.

https://github.com/ushkarev/semver_range/workflows/Test%20semver_range/badge.svg

Usage

Install using pip install semver_range. Sample usage:

>>> from semver_range import Version, Range
>>> version_range = Range('>=0.1.1 <0.3.0')
>>> Version('0.2.2') in version_range
True
>>> version_range.highest_version(['0.1.1', '0.2.0', '0.3.0'])
<Version "0.2.0">

Alternatives

semantic_version is a great package which differs slightly in its implementation of semantic versioning, for example when incrementing a minor version of a pre-release.

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_range-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

semver_range-0.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file semver_range-0.0.3.tar.gz.

File metadata

  • Download URL: semver_range-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for semver_range-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3ccd09d5a28da3627374e41740879e85c3ce68cd607cf37bf6cbb52beb1f3a90
MD5 5505151d8a11a1a3a873d8589f8e9658
BLAKE2b-256 ce7783ecf5c4612ff5bac6e9566e5729c222c2daf51b065a8e136509de2f75f2

See more details on using hashes here.

File details

Details for the file semver_range-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for semver_range-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd609e036a2a0952474b1ccb1d694da407d681ae7f36f53abc2209e6d02189d3
MD5 d93a41647fcf2a0ad10344a0e4b34371
BLAKE2b-256 31e65b97fe25f2ed73490d6b793d01aef25ba61d32f35f3891b2d98ef3f55a6e

See more details on using hashes here.

Supported by

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