Skip to main content

Cython wrapper around GrailSort (https://github.com/gaming32/GrailSort-Maintained)

Project description

PyPI - License

PyPI PyPI - Format GitHub last commit

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GrailSort-1.2.0.tar.gz (139.8 kB view hashes)

Uploaded Source

Built Distributions

GrailSort-1.2.0-cp39-cp39-win_amd64.whl (103.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

GrailSort-1.2.0-cp38-cp38-win_amd64.whl (103.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

GrailSort-1.2.0-cp38-cp38-manylinux1_x86_64.whl (470.9 kB view hashes)

Uploaded CPython 3.8

GrailSort-1.2.0-cp37-cp37m-win_amd64.whl (102.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

Supported by

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