Skip to main content

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.

Metadata

Release files for semver_range 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semver_range 0.0.3
File Size Uploaded
semver_range-0.0.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for semver_range 0.0.3
File Interpreter ABI Platform
semver_range-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / semver_range-0.0.3.tar.gz

Download URL semver_range-0.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ccd09d5a28da3627374e41740879e85c3ce68cd607cf37bf6cbb52beb1f3a90
BLAKE2b-256 checksum
How to use checksums
ce7783ecf5c4612ff5bac6e9566e5729c222c2daf51b065a8e136509de2f75f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / semver_range-0.0.3-py3-none-any.whl

Download URL semver_range-0.0.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd609e036a2a0952474b1ccb1d694da407d681ae7f36f53abc2209e6d02189d3
BLAKE2b-256 checksum
How to use checksums
31e65b97fe25f2ed73490d6b793d01aef25ba61d32f35f3891b2d98ef3f55a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page