Skip to main content

Normal sorting

PyPI version CI status codecov

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.

Metadata

Release files for sortpy 1.1.0

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

Source distribution (sdist)

Source distribution for sortpy 1.1.0
File Size Uploaded Provenance Actions
sortpy-1.1.0.tar.gz 5.2 kB Without provenance Details for sortpy-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.0 kB

Release files / sortpy-1.1.0.tar.gz

Download URL sortpy-1.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d03a7978787e07118a05a643c2d696702f6c46383d6bba06e32b8620395e0ed6
BLAKE2b-256 checksum
How to use checksums
b627d52f054b292bcbf5c40c0057c41b5bff7f8fe56e1ba261e8ebc4fa67f246
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure

Release files / sortpy-1.1.0-py3-none-any.whl

Download URL sortpy-1.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7af14821576d9932e53258928245015e214b092e593a297c7afa13cd18edef52
BLAKE2b-256 checksum
How to use checksums
b7895b253cdd3e343c6fb8a38c5153d2cdf9fc0d6f8c73b92eed89514a554b6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure

Security for sortpy 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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