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

Coding standards

  • perfectionism
  • black - code formatting
  • 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.5.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysortlib-0.5.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1018-azure

File hashes

Hashes for pysortlib-0.5.1.tar.gz
Algorithm Hash digest
SHA256 20ef197f43dd3073672472e300a9e188f3f9dc94723d892f767a3279e0cece47
MD5 da18d8bbc1bb5cc1f5bbec91d20b5d59
BLAKE2b-256 a4a1edf7ff339c40d14f32b02054705406ae82eaabecd59e2903f00253905f6b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysortlib-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78faa83fb18ec44f8c2daccf9a4afb598504064e3699fa9fc539f7f780f175ef
MD5 4a91c9fc2443e20cdf1be0745e3ba2e3
BLAKE2b-256 4dd3928a0d9e90ef00a795d30de58f3f90422533c18d4925163a2ea526d5344a

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