Skip to main content

unified-range

Based on the VersionRange model and spec 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

  1. Use pip directly

pip install unified-range

How to use

  1. Import the api module:

from unified_range import api

  1. Convert from semver to the unified range (return VersionRange object):

ver_rng = api.from_semver(semver_str)

  1. To get the string representation of a VersionRange object:

version_range_str = str(ver_rng)

  1. Convert from unified spec to semver_str (return str):

semver = api.to_semver(unified_spec_str)

  1. Convert from spec string to VersionRange objects:

ver_rng = api.unified_range(unified_spec_str)

Metadata

Release files for unified-range 0.0.2

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

Source distribution (sdist)

Source distribution for unified-range 0.0.2
File Size Uploaded
unified_range-0.0.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unified-range 0.0.2
File Interpreter ABI Platform
unified_range-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / unified_range-0.0.2.tar.gz

Download URL unified_range-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a4751549117b054cb7033c9ae3555f1f0eda450e2a2d01271dcff2e3639a4678
BLAKE2b-256 checksum
How to use checksums
67faac0d8b990a19c688c3821ed2f9bbc2648e4ec6c48471f1789be18e8fcf4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / unified_range-0.0.2-py3-none-any.whl

Download URL unified_range-0.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c31593dfba6e6b9ef4f83e16db4bd045804bb487fc3f857b30a7506d7fbda3cf
BLAKE2b-256 checksum
How to use checksums
33a2dbae25c6d1fe543d57eb36c3111ad454e977f503900a87af883f1b7b5057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

0.1.1

2 release files

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

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