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.
Metadata
Release files for version-comparator 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| version-comparator-0.0.2.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| version_comparator-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / version-comparator-0.0.2.tar.gz
| Download URL | version-comparator-0.0.2.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cb730734559ba2f9bb41fc24afffd66a435a6254ba2624951dc8c9243ff75d5
|
|
BLAKE2b-256 checksum How to use checksums |
0bbec89a6b0a49c2af68830a28718a28346fd7fa8c671cee765460bd6b050518
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
|
Release files / version_comparator-0.0.2-py2.py3-none-any.whl
| Download URL | version_comparator-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
19d5980ede23a23f042ee40b00569b05c7e102e9a4fbc659ab78aa17253e363f
|
|
BLAKE2b-256 checksum How to use checksums |
fe2500a0d1dbe469ca1b9e9752c4246eb98a32a2e85c5b6e0dfba8c5bcf544aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
|