An example package. Checks if a version is equal to, greater or less than another version
Project description
Overview
An example package. Checks if a version is equal to, greater or less than another version
Free software: BSD 3-Clause License
Installation
pip install version-comparator
You can also install the in-development version with:
pip install https://github.com/pcu4dros/pedro_cuadros_test/python-version-comparator/archive/master.zip
Documentation
Project
The goal of this question is to write a software library that accepts 2 version string as input and returns whether one is greater than, equal, or less than the other. As an example: “1.2” is greater than “1.1”.
Usage
To use Distributed LRU Cache in a project:
from version_comparator import comparator comparator.compare_versions('1.2.1', '1.2.1')
Where:
0: The version are equal 1: The version is greater then the other version -1: The version is less than the other version
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.0.1 (2020-01-29)
First release on PyPI.
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 version-comparator-0.0.1b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9551ac2859dcd4554eda071ffa1309374a295cb222d41eec50fbef39b1ca3581 |
|
MD5 | 8dc3e0632587fc332508433df05a57ce |
|
BLAKE2b-256 | 87315300244e1cc8f4515fd1f496975b7cf4f07e22708ec562d1abdbd7d4e77b |
Hashes for version_comparator-0.0.1b0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a1999d4c96ffbef20648693cc543e47604bf996a9073dc75bd591aec2a8aa9 |
|
MD5 | 28d1d0f1069ec234272ca201035076d4 |
|
BLAKE2b-256 | cec117eaafbb5992a584733a20ab22503f409c32129800bfd86369045f92d0df |