A package with all sorting algorithms.
Project description
pysorters
Python package with sort methods for everything you could even imagine! :rocket: :rocket: :rocket:
Table of Contents
Installation
You can install the package via pip:
pip install pysorters
Or via git:
pip install git+https://github.com/yo1am1/pysorters.git
Usage
- Bubble Sort
from pysorters import Sorter sort_1 = Sorter() array = [3, 2, 1] sort_1.bubble_sort(array) print(array) # [1, 2, 3] sort_2 = Sorter([10, 9, 6, 7, 8, 3, 5, 4, 2, 1]) result = sort_2.quick_sort() print(result) # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- Quick Sort
from pysorters import Sorter, gran_array_int sort = Sorter(gran_array_int(10, 1, 10)) result = sort.quick_sort() print(result)
... and many more!
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
pysorters-0.5.1.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for pysorters-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f5c7e8a9e5d62cd3dab0a165eb480e05f0bb81004688672429d5bbd7f483a0 |
|
MD5 | b9d195c9c1f2e9634e3cafe574560b83 |
|
BLAKE2b-256 | a90c20afe1f50bd780e8e62dee95daeef1a7728d5af0a6206921b89f71e566e9 |