Cython wrapper around GrailSort (https://github.com/MusicTheorist/Grail-Sort-Refactored)
Project description
GrailSort for Python
GrailSort for Python is a Python API for the GrailSort algorithm.
Installation
You can install GrailSort for Python from source:
$ git clone https://github.com/gaming32/grailsort
$ cd grailsort
$ python setup.py install
Or you can install it from PyPI:
$ python -m pip install GrailSort
Usage
GrailSort for Python comes with two modules: a strict one, and a slower one. The strict module (cGrailSort
) only deals with array.array('d')
objects, while the slower module (grailsort
) deals with any Python sequence that contains comparable objects.
It is generally unnescessary to deal with the grailsort
module, as you might as well use the built-in list.sort
method or the sorted
function. However, TimSort is not in-place, while GrailSort is. cGrailSort
is useful when you need to sort with speed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for GrailSort-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94313844bd2b0eb18fd473db0b1a8751f87705d1489fa97b7ac095db102b8377 |
|
MD5 | 472dba7cd485b94dc8317a788c786d93 |
|
BLAKE2b-256 | f834ea2d168a3e3ff2bfd872c127f302e7ce5ee3e28fed953ed14986135030eb |
Hashes for GrailSort-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6e83191a906ef01acefaec4d1cdd0acf2940d9d1baf92b8005dc95496a2bdc |
|
MD5 | 8f34ad87cb9aa4c257f808a541e2ae4d |
|
BLAKE2b-256 | c92137b7605619821d4b4e7cf0803b45cceffec83c94fa4c3d987e9928f86cea |
Hashes for GrailSort-1.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dd86c33e478592bac306f377c0b9774fe77991c68f149062ca2d32caa59c993 |
|
MD5 | f82aee11c48e2e4bd2e2f0f75ac6023c |
|
BLAKE2b-256 | d97a9237a364cc918a23f0ce5eef9b316199d6fbd9b2e093fb7224f6da0ef1e7 |
Hashes for GrailSort-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071eeb82ae277c8b9e5323a1269d605eb8022a822114937b63592a39b1d41b51 |
|
MD5 | 3c0dd158f01440a907c22b3c5091c441 |
|
BLAKE2b-256 | f2282b57c3052dd07d9c4ada3ef870ba787c2f573798c14a2fc60d91e2fee128 |