Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

module for comparing to strings

Project description

Compare strings

  • A python library for comparing 2 strings
  • in the case of str1 = str2 returned value would be 1
  • in the case of str1 > str2 returned value would be 0
  • in the case of str1 < str2 returned value would be -1

Installation:

pip3 install compare_strings_lib

Usage:

from strings.compare import compare

    result = compare("1.2", "1.1")

Project details


Download files

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

Files for compare-strings-lib, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size compare_strings_lib-0.0.2-py3-none-any.whl (2.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size compare_strings_lib-0.0.2.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page