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 details)
Built Distribution
File details
Details for the file pysortlib-0.2.1.tar.gz
.
File metadata
- Download URL: pysortlib-0.2.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d94f686386bf90abdd21bd4c0c617a553c5480841d15d52a6afc1c05deed0c |
|
MD5 | 6f457077792fc440b2aefa223f0ffb45 |
|
BLAKE2b-256 | 0c82c0704ef7289ee6245d96425abcaa97711fd75663a2115af0052613fa8e61 |
File details
Details for the file pysortlib-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pysortlib-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0469ea3e174d55bf8a5badcb9be15b37daac21b8d33e0ad9669b164cbe1dcb |
|
MD5 | cfd1de0779daeb92f351b45dd81b69dc |
|
BLAKE2b-256 | 5882b0f36d5dbd90abf3217d63b4bc2a87e604999ca49db58b622ce8b4129217 |