Metadata-Version: 2.1
Name: MatchFinder
Version: 1.0.0
Summary: A Python package for finding similar strings with advanced formatting options.
Home-page: https://github.com/memanja/MatchFinder
Author: Manoj Shetty K
Author-email: shettykmanojmask@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# MatchFinder
 _A Python package that finds your string's soulmatesâ€”quickly, effortlessly, and with style._
 
Welcome to **_MatchFinder_**! It's your go-to tool for finding similar strings in a list. Whether you're matching names, fixing typos, or building a search engine, MatchFinder makes it easyâ€”**no extra libraries needed, just simple and powerful Python!**\
<sub><sub>Developed primarily for fun and learning purposes.</sub></sub>

## Why MatchFinder?
**1. Simple**: No unnecessary imports and installâ€”just good old Python.\
**2. Customizable**: Choose your output styleâ€”csv, JSON or text, with or without scores.\
**3. Speed**: Optimized to return results quickly, even for large datasets.\
**4. Fun**: Because boring tools are for boring developers. ðŸ˜‰ 
## Installation  

You can install MatchFinder directly from PyPI:

```bash
pip install MatchFinder
```
## Usage
Hereâ€™s how to get started with MatchFinder:

### Import the package
```python
from MatchFinder import get_similar
```
### Example 1: Text Output

```python

input_str = "snake"
match_list = ["snack", "your ex","snakes"]
n = 1


# Get similar strings in a simple text format
result = get_similar(input_str, match_list, n, include_score=False, output_format="text")
print(result)

```
### output 
```text
['Match: snakes']
```


### Example 2: JSON Output
```python
# Get similar strings in JSON format, including similarity scores
result = get_similar(input_str, match_list, n=2, include_score=True, output_format="json")
print(result)

```
### output
```json
[
  {'match': 'snakes', 'score': 0.83},
  {'match': 'snack', 'score': 0.6}
]
```
### Example 3: Customizing Parameters
You can customize the Parameters


 **n** - Maximum number of matches to return.(default 1)\
**output_format** - Desired output format ("text" or "json" or "csv")\
**include_score** - Whether to include similarity scores.\
**case_insensitive** - Ignores case sensitivity of input text and match_list
```python
# Change the number of matches and disable scores
result = get_similar("Python", ["Pithon", "Phyton", "Ruby", "Pytan"], n=2, include_score=False, output_format="text")
print(result)
```
### output
```text
['Match: Pithon', 'Match: Phyton']
```

## Behind the Scenes 
MatchFinder uses a custom similarity algorithm to calculate how "close" two strings are.\
**Itâ€™s like Tinder for strings but with way less drama.** 


## Contributions
Feel free to fork this project, add cool new features, or just drop by to say hi! 

## License
This project is licensed under the MIT License. 

**<ins>Get Matching Now!</ins>\
Install MatchFinder today and make your strings feel a little less lonely.**
