Skip to main content

Python Sorting Library

Project description

Python Sorting Library

PyPI Downloads Coverage

Library of sorting algorithms with precise implementation and documentation.

Algorithms

  • Bubble sort
  • Counting sort
  • Cycle sort
  • Heap sort
  • Insert sort
  • Merge sort
  • Pancake sort
  • Quick sort
  • Radix sort
  • Selection sort
  • Shell sort
  • Sleep sort

Install

pip install pysortlib

Usage

from pysortlib import insert_sort

array = [3, 5, 2, 1, 7, 4, 6]
insert_sort(array)  # set a breakpoint and explore \o/
print(array)

Development

Virtual environment

pip install --user poetry
poetry config virtualenvs.in-project true
poety shell
poetry install

Dependencies

poetry update

Pre-commit

pre-commit clean
pre-commit install --hook-type pre-commit

Testing

nox

Coding standards

  • perfectionism
  • ruff - static code analysis
  • mypy - static type checking
  • pytest - unit tests

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

pysortlib-0.6.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

pysortlib-0.6.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pysortlib-0.6.0.tar.gz.

File metadata

  • Download URL: pysortlib-0.6.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pysortlib-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5f282c4c91f410ceed6f1be22de56a1a885ea3623fc35cefd7e727b1997ce005
MD5 fe669be78e23bf97994be4d3a55761a1
BLAKE2b-256 313a2917156a9e2dd7bf3738968a6acf0ae68b832547586aa01abdd13d04fb69

See more details on using hashes here.

File details

Details for the file pysortlib-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pysortlib-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pysortlib-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e84de94159f73b5c853887f486d24d6384fdd6b6c21be6e6293006671769ea27
MD5 6d60080bb2b73a1dbef3fa079184288f
BLAKE2b-256 f340d1c843d2e45f65f98bc309b95bbedee648275a407fcd9e41c2ab9fd10277

See more details on using hashes here.

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