Skip to main content

Python Sorting Library

Project description

Python Sorting Library

PyPI Downloads Coverage

Sorting algorithms with precise implementation and documentation.

Implemented:

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

Planned:

  • Cycle 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

License

This project is licensed under the terms of the MIT license.

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

Uploaded Source

Built Distribution

pysortlib-0.3.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysortlib-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for pysortlib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 df11bebdf72e674888083334d41ba31023fdb20035e344c8a8942c4406e6ebda
MD5 dd2313a3cc5709c5f5fb7db8438a79c4
BLAKE2b-256 24dacff21891aec1fa2051b814f247e40dbd635f16adddc07d4a9cd8b648b959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysortlib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for pysortlib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 936be68b93c99984e3022c3e93213ef70227bc0161b3a71f0e4a5ef786971d06
MD5 56a3a10f6804e968fc6b0779cfa35e84
BLAKE2b-256 2dd591376ed0c4711c630b2c363686db460238b50e11cd3145ccca0ce70b7712

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