Metadata-Version: 2.4
Name: meowsort
Version: 0.1.3
Summary: Lightweight Python sorting utility that automatically selects the best sorting algorithm.
Author: Shaurya Pratap Singh
License: MIT License
        
        Copyright (c) 2026 Shaurya Singh
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/ShauryaSingh1709/meowsort
Project-URL: Repository, https://github.com/ShauryaSingh1709/meowsort
Project-URL: Issues, https://github.com/ShauryaSingh1709/meowsort/issues
Keywords: sorting,algorithms,python,utilities
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# MeowSort 😺

![PyPI Version](https://img.shields.io/pypi/v/meowsort?color=blue)
![Python](https://img.shields.io/pypi/pyversions/meowsort)
![License](https://img.shields.io/github/license/ShauryaSingh1709/meowsort)

A lightweight Python sorting utility that automatically selects the best algorithm for your dataset.

The goal of this library is to provide a minimal, easy-to-use sorting tool for developers and students.

---

## Links

📦 PyPI: https://pypi.org/project/meowsort/  
💻 GitHub: https://github.com/ShauryaSingh1709/meowsort  

---
## Features

* Simple and clean API
* Automatic algorithm selection
* Supports any comparable Python data type
* Lightweight with no external dependencies
* Safe error handling

---

## Installation

Install directly from PyPI:

```bash
pip install meowsort
```
Verify installation:

```bash
pip show meowsort
```

---

## Quick Start

```python
from meowsort import sort_array

data = [5, 3, 9, 1]

sorted_data = sort_array(data)

print(sorted_data)
```

Output:

```
[1, 3, 5, 9]
```

---

## Sorting Different Data Types

The library works with any comparable data type.

### Numbers

```python
from meowsort import sort_array

numbers = [8, 2, 6, 1]

print(sort_array(numbers))
```

Output

```
[1, 2, 6, 8]
```

### Strings

```python
from meowsort import sort_array

words = ["banana", "apple", "orange"]

print(sort_array(words))
```

Output

```
['apple', 'banana', 'orange']
```

---

## Error Handling

The library validates input and raises clear exceptions if invalid data is provided.

Example:

```python
from meowsort import sort_array

sort_array(None)
```

Raises:

```
InvalidInputError
```

---

## Algorithms Used

MeowSort currently includes:

* Bubble Sort — optimized for small datasets
* Quick Sort — used for larger datasets

The algorithm is selected automatically based on the size of the input.

---

## Requirements

* Python 3.8 or newer

---

## Project Structure

```
meowsort
│
├── meowsort
│   ├── __init__.py
│   ├── sorter.py
│   ├── algorithms.py
│   └── exceptions.py
│
├── tests
│   └── test_basic.py
│
├── pyproject.toml
├── README.md
└── LICENSE
```

---

## Author

**Shaurya Singh**

---

## License

This project is released under the MIT License.
