No project description provided
Project description
# unified-range
Based on the VersionRange [model](https://github.com/apache/maven/tree/master/maven-artifact/src/main/java/org/apache/maven/artifact/versioning) and [spec](https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html) of maven.
Library to convert semver ranges to unified-range and the over way around. Currently only supported for comparator semver ranges.
## Install 1. Use pipenv
pipenv install unified-range
or
Use pip directly
pip install unified-range
## How to use 1. Import the api module:
from unified_range import api
Convert from semver to the unified range (return VersionRange object):
ver_rng = api.from_semver(semver_str)
To get the string representation of a VersionRange object:
version_range_str = str(ver_rng)
Convert from unified spec to semver_str (return str):
semver = api.to_semver(unified_spec_str)
Convert from spec string to VersionRange objects:
ver_rng = api.unified_range(unified_spec_str)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for unified_range-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0877101be8594efd6857851c021c1e1eb43cdb865dbd910110cb475c513387b |
|
MD5 | 9dab07d998ce313f2ca0ecc857fe8acc |
|
BLAKE2b-256 | d7d0aecdb2b68068721fb990d82623987aba1eb2e52641326ffebb4540e86a81 |