Skip to main content

vsort

PyPI version License: MIT

This library was created to simplify sorting algorithms by visually displaying them in the form of a horizontal table, using colors to illustrate the sorting steps, giving the ability to control the sorting speed and manually switching between items, all this is especially for beginners in sorting algorithms.

Installation

You can install vsort via pip:

pip install vsort

Usage

For selection sort algorithm

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])
x.selection_sort()

Output

https://drive.google.com/file/d/1-uqA1tvz0QjtyAjhPJY_HarxoBKQZ9-o/view?usp=drive_link

For bubble sort algorithm

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])
x.bubble_sort()

Output

https://drive.google.com/file/d/1KhYNYXrsGpH4noM20tJAKtgqJpoJ3HBV/view?usp=sharing

For insertion sort algorithm

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])
x.insertion_sort()

Output

https://drive.google.com/file/d/1KHgl5-F4yepKj8H-VB2X-I1D3dReum1A/view?usp=drive_link

For shell sort algorithm

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])
x.shell_sort()

Output

https://drive.google.com/file/d/1uTvzLAZi453u3Q8ywXl6vx7Zcjwxz7Cr/view?usp=drive_link

For heap sort algorithm

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])
x.heap_sort()

Output

https://drive.google.com/file/d/1Gwv_zdUUHWG894W3NV_LSaN3xod638BY/view?usp=drive_link

You can sort in descending order

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], reverse=True)

You can reduce the sorting speed

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], speed=7)

You can control the sorting steps by pressing Enter

from vsort import sortVisualizer


x = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], control=True)

License

This project is licensed under the MIT LICENSE - see the LICENSE for more details.

Metadata

Release files for vsort 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vsort 1.0.2
File Size Uploaded Provenance Actions
vsort-1.0.2.tar.gz 8.2 kB Without provenance Details for vsort-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vsort 1.0.2
File Interpreter ABI Platform Actions
vsort-1.0.2-py3-none-any.whl Python 3 none any Details for vsort-1.0.2-py3-none-any.whl

Total release size: 16.2 kB

Release files / vsort-1.0.2.tar.gz

Download URL vsort-1.0.2.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
252974cddd99547b54c04fef75fb7e6c8d639f8c8dd690ce5b71fc3e4b646933
BLAKE2b-256 checksum
How to use checksums
583f48f9c0d6cf78ddfa67ea75a45cc9de37ca01966ca0b11857ac8fa108a360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release files / vsort-1.0.2-py3-none-any.whl

Download URL vsort-1.0.2-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d03811ebb32532628319bbbabdbd882c2d6a20db73af6e02790b2db28bfcacc
BLAKE2b-256 checksum
How to use checksums
d6013eef0ee88b0a018c184154240ec363a3eea8da4825f0d3cb2f0940372735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Security for vsort 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page