Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versionCompare-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versionCompare-0.1.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for versionCompare-0.1.2.tar.gz
Algorithm Hash digest
SHA256 46a06d3c8bd221b23b2b311a0aa1d415ca7266ba6db180afc59986241476446f
MD5 3ec4724428b5f5d46efd7298a7321cca
BLAKE2b-256 f4267462ad87636e6fcd9044c809d8fe1054babda63031e28c5ef154bb2b98ef

See more details on using hashes here.

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

Hashes for versionCompare-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d839b0abb75fc29bec4487d161a83d42502d3217e276221a239b59e8b9ef854d
MD5 792b1585e7f9fa3c6d95b77d7713e073
BLAKE2b-256 3dd542738d359ac306d5f75567eb7d462a4b1cd40ab07204663e237803d96f6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page