Python Sorting Library
Project description
Python Sorting Library
Sorting algorithms with precise implementation and documentation.
Implemented:
- Bubble sort
- Counting sort
- Heap sort
- Insert sort
- Merge sort
- Quick sort
- Radix sort
- Selection sort
- Shell sort
Planned:
- Cycle sort
- Pancake 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
Release history Release notifications | RSS feed
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.2.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for pysortlib-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0469ea3e174d55bf8a5badcb9be15b37daac21b8d33e0ad9669b164cbe1dcb |
|
MD5 | cfd1de0779daeb92f351b45dd81b69dc |
|
BLAKE2b-256 | 5882b0f36d5dbd90abf3217d63b4bc2a87e604999ca49db58b622ce8b4129217 |