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
andstr2
-- strings, which you are matchingmkdefault
-- coefficient, which set percentage value of equal characters. Can get value in the range of 0 to 1.mismatching_chars
-- value of mismatching characters betweenstr1
andstr2
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
Built Distribution
File details
Details for the file unmatch-1.2.1.tar.gz
.
File metadata
- Download URL: unmatch-1.2.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ed76c7099a5797f12222621a921c2cef715c39813744d8dfde0c8e6ccb4f3b8 |
|
MD5 | 36a72b4cfb7a79c0fb9ba31d8a67eb50 |
|
BLAKE2b-256 | 746d70145eb70d450c69933ffaa7838bc8fe03f720f091f4acf9ff2ff1fc0467 |
File details
Details for the file unmatch-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: unmatch-1.2.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80692545e62cc156ef77892ca0a183ea93bcd32e3401f19fc3f37822d8e9fc58 |
|
MD5 | 71c00eaa98090c8ccd399e7fa93b62fd |
|
BLAKE2b-256 | c56a0ba912ae4fd43df60024c3a66c7e1d7eddcc631d9f113b62dbcbbaf4b285 |