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 uv
uv venv
uv sync

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.1.tar.gz (3.9 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysortlib-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for pysortlib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c912338cbb504d845f432ff948ba4c18a86e2191c77547f8dd8e4b64617d813f
MD5 5d4c8d96ea2932dca1cba4dc3b7dff47
BLAKE2b-256 0300bb05a196d68b5934312fc703a1e5e7b329271fd39e47ac0b55c1581117df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysortlib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for pysortlib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d91c2321d86c82f8755828917043fdc6042a94be939f82fefdaa860bba436b
MD5 310e354d351ba3cc0b795f78b96dc81e
BLAKE2b-256 10e0b7659362c17a82bb7768724d885e7517125155c593dc8150a978bf3c22c4

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