Skip to main content

ungreat matching of strings module

Project description

UNMATCH

Welcome to documentation of ungreat matching of strings module. Here i will tell you how to use it.

ungreat_match(str1, str2, mkdefolt=0.7, mismatching_chars=5)

A function, which ungreat matching your strings and return a list with result

  • str1 and str2 -- strings, which you are matching
  • mkdefault -- coefficient, which set percentage value of equal characters. Can get value in the range of 0 to 1.
  • mismatching_chars -- value of mismatching characters between str1 and str2 This function return a list with result and status of work, like: ['python', 'True'] ['mismatching skills', 'False', 'mismatching chars less than needs']

example of usage

It is a little test of library, which i were using when testing my lib. If you want to test or pass different value to the function, you can open your terminal or command prompt at folder path_to_your_virtual_environment/lib/site-packages/unmatch and run it by writing python test.py or python3 test.py at command prompt, if you on Windows, or terminal, if you on Linux. Code of test.py:

from ungreat_matching import ungreat_match, num_match_max, num_match_min


test_data = [['python','Python'],
['python','python3.7'],
['PYTHON','python3.7'],
['PYTHON','python3.7.3']]
for data in test_data:
    print(ungreat_match(data[0], data[1], mismatching_chars=5, mkdefault=0.7))

Here i am showing, how it works. (All text, what you put in function ungreat_match will convert to lower case and result of function will always give you a lower case result)

What's new:

1.1.0:

  • some changes in realization of library and optimization
  • upgrade of documentation

You can see source code on Github repository of project.

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

unmatch-1.2.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

unmatch-1.2.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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