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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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