python-sorter
A Python package to apply multiple type of sorting algorithm on your data and also compare which sorting is fastes on your data. Visit the page for python-sorter
Installation
pip install python-sorter
Usage
import data_sorter
arr = [0.32, 0.33, 0.37, 0.42, 0.47, 0.51, 0.52]
####### To perform sorting #########
arr = data_sorter.bubble_sort(arr)
print(arr)
##### To compare execution time between different algos ######
# apply all sorting technique
result = data_sorter.get_comparison(arr)
# specify which sorting algorithm to apply
result = data_sorter.get_comparison(arr, ['bubble_sort'])
##### To plot execution time between different algos ######
# apply all sorting technique
result = data_sorter.plot_comparison(arr)
# specify which sorting algorithm to apply
result = data_sorter.plot_comparison(arr, ['bubble_sort'])
Available sorting algorithms
- brick_sort
- bubble_sort
- bucket_sort (only for float data)
- comb_sort
- counting_sort (only for integer data)
- cycle_sort
- gnome_sort
- heap_sort
- insertion_sort
- intro_sort
- merge_sort
- pigeonhole_sort (only for integer data)
- quick_sort
- radix_sort
- selection_sort
- stooge_sort
- strand_sort
- tree_sort
Metadata
Release files for python-sorter 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-sorter-1.2.0.tar.gz | 13.5 kB | Without provenance | Details for python-sorter-1.2.0.tar.gz |
Release files / python-sorter-1.2.0.tar.gz
| Download URL | python-sorter-1.2.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea72b656c901bb91f43923d96d4a2a2c4a3511c3ea27f033c23af64170160edd
|
|
BLAKE2b-256 checksum How to use checksums |
28320e680277272b817b18d0a5f83096eb9e52b422b09428eca0bf8d389c9447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for python-sorter 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.