Metadata-Version: 2.1
Name: sortpy
Version: 1.1.0
Summary: Various sorting algorithms in pure python
Home-page: https://github.com/xfenix/xfsort
License: MIT
Author: Denis Anikin
Author-email: ad@xfenix.ru
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: flit
Requires-Dist: pytest
Requires-Dist: pytest-cov
Requires-Dist: pytest-xdist
Description-Content-Type: text/markdown

Normal sorting
===
[![PyPI version](https://badge.fury.io/py/sortpy.svg)](https://badge.fury.io/py/sortpy)
![CI status](https://github.com/xfenix/sortpy/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/xfenix/sortpy/branch/master/graph/badge.svg)](https://codecov.io/gh/xfenix/sortpy)

Various sorting algorithms implemented in pure python. Now with typing support and for python 3.7/3.8.  
Currently implemented following:
* Bubble (of course just for fun)
* Quick (with random pivot)
* Merge
* Insertion
* Heap
* More to go...

Compatibility
--------
Python 3.7+ (test coverage include python 3.7, 3.8)

Usage
--------
* Install `pip install sortpy`
* Import sorting algorithm `from sortpy import quick`.  
  Function doesnt check the output (for the sake of speed), and have correct type annotations, that talk about available types.
* Use it like `quick.sort([3, 2, 1])`

Also
--------
Test coverage with fixtures and random generated test cases (reference function is python basic timsort).  
Has couple hundred parametrized tests.

