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-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysortlib-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1017-azure

File hashes

Hashes for pysortlib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c4941ab89ff9f581c6ea3634b7fb1e4fa58fec19cadc09cce97a87a40de32fd
MD5 fa121f2baaf17c3021cd7d786278b48f
BLAKE2b-256 7913d400670a18be6ee9c521de0f58e11ee31fd1dd5053e0d98f31f67f32b18f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysortlib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1017-azure

File hashes

Hashes for pysortlib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0b407ccc3d247f2e23bbce939da8e25ed88f6db0b61f735aec4f8842d689112
MD5 23b582cbfb95a1c627d78fc427dc5f33
BLAKE2b-256 4a63eef8e61d56f70694b3f31592b5d4ba33ee23cf915af053340364e8c2bce0

See more details on using hashes here.

Supported by

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