Skip to main content

Lightweight Python sorting utility that automatically selects the best sorting algorithm.

Project description

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.

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

meowsort-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meowsort-0.1.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file meowsort-0.1.3.tar.gz.

File metadata

  • Download URL: meowsort-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for meowsort-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c76c5dcb6fd42789cf8db197a741bb93df46a952c26ed9f458567c414747f122
MD5 37c19b098a16fd2e89d624e7dcec44b3
BLAKE2b-256 ed93aef20a85379a595d8652d3522753c3f60f1bad29870d99c3f54dad22ba36

See more details on using hashes here.

File details

Details for the file meowsort-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: meowsort-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for meowsort-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 747003c20a5f9bc2f369331dee3cadcb00057b6fc4370d6c5563b08f8e14d2b1
MD5 78b30937cb4e31bb7336eb8f00a07139
BLAKE2b-256 441a317750bc5349da644c7e2b23e8e415a825ab5486e99a8f7fcbf48dbb28bb

See more details on using hashes here.

Supported by

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