Skip to main content

MeowSort 😺

PyPI Version Python License

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:

pip install meowsort

Verify installation:

pip show meowsort

Quick Start

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

from meowsort import sort_array

numbers = [8, 2, 6, 1]

print(sort_array(numbers))

Output

[1, 2, 6, 8]

Strings

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:

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.

Metadata

Release files for meowsort 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meowsort 0.1.3
File Size Uploaded
meowsort-0.1.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meowsort 0.1.3
File Interpreter ABI Platform
meowsort-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / meowsort-0.1.3.tar.gz

Download URL meowsort-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c76c5dcb6fd42789cf8db197a741bb93df46a952c26ed9f458567c414747f122
BLAKE2b-256 checksum
How to use checksums
ed93aef20a85379a595d8652d3522753c3f60f1bad29870d99c3f54dad22ba36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / meowsort-0.1.3-py3-none-any.whl

Download URL meowsort-0.1.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
747003c20a5f9bc2f369331dee3cadcb00057b6fc4370d6c5563b08f8e14d2b1
BLAKE2b-256 checksum
How to use checksums
441a317750bc5349da644c7e2b23e8e415a825ab5486e99a8f7fcbf48dbb28bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page