Skip to main content

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.

Source Distribution

compare_strings_lib-0.0.2.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

compare_strings_lib-0.0.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file compare_strings_lib-0.0.2.tar.gz.

File metadata

  • Download URL: compare_strings_lib-0.0.2.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for compare_strings_lib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2d621f790e5935324998184c7a176154e2c6e9f1f095e683ada8f9f48d57622b
MD5 bdd0a03acd18cc8e8ce0be97058e9913
BLAKE2b-256 3b317638d1aa2c73a1f1305115254a1386d65ff109778f3d723fb7bf1d4bbb1d

See more details on using hashes here.

File details

Details for the file compare_strings_lib-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: compare_strings_lib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for compare_strings_lib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcda2853d2a0495f750a75c16b79a7c4c6ef850924d1e66185a402098ecb5de5
MD5 41e18dae2bc5cc87119a69d8ce7da1cc
BLAKE2b-256 a02ad953dd4a1dbed120f1c22dc3e9ee2aad4c9a09442bb3e24e410dfe41e023

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