A library to check if a number is greater, equal or less than the other.
Project description
Laguage: Python
Function: Library
Name: versionCompare
Latest Version of the library: https://pypi.org/project/versionCompare/0.1.1/
A python library that takes 2 strings of versions as input and then checks if one is greater, equal or less than the other. Example output; 1.2 > 1.1, 1.1.0 < 1.1.2
Usage
Import versionComparison from class versionComparison
Create an instance of versionComparison and supply it with the 2 strings as expected in its constructor.
Call compare_versions on the instance, and it will give appropriate result.
-> 1 if version1 > version2
-> 0 if version1 == version2
-> -1 if version1 < version2
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file versionCompare-0.1.2.tar.gz.
File metadata
- Download URL: versionCompare-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46a06d3c8bd221b23b2b311a0aa1d415ca7266ba6db180afc59986241476446f
|
|
| MD5 |
3ec4724428b5f5d46efd7298a7321cca
|
|
| BLAKE2b-256 |
f4267462ad87636e6fcd9044c809d8fe1054babda63031e28c5ef154bb2b98ef
|
File details
Details for the file versionCompare-0.1.2-py3-none-any.whl.
File metadata
- Download URL: versionCompare-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d839b0abb75fc29bec4487d161a83d42502d3217e276221a239b59e8b9ef854d
|
|
| MD5 |
792b1585e7f9fa3c6d95b77d7713e073
|
|
| BLAKE2b-256 |
3dd542738d359ac306d5f75567eb7d462a4b1cd40ab07204663e237803d96f6f
|