vsort


Namevsort JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://pypi.org/project/vsort/
SummarySophisticate Sorting Algorithms
upload_time2024-11-15 15:13:42
maintainerNone
docs_urlNone
authorkhiat Mohammed Abderrezzak
requires_python>=3.6
licenseMIT
keywords sorting algorithms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vsort


[![PyPI version](https://badge.fury.io/py/vsort.svg)](https://badge.fury.io/py/vsort)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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:


```bash
pip install vsort
```


## Usage 


### For selection sort algorithm


```python
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


```python
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


```python
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


```python
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


```python
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 


```python
from vsort import sortVisualizer


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


#### You can reduce the sorting speed


```python
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


```python
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](https://opensource.org/licenses/MIT) for more details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/vsort/",
    "name": "vsort",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "sorting algorithms",
    "author": "khiat Mohammed Abderrezzak",
    "author_email": "khiat.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/58/3f/48f9c0d6cf78ddfa67ea75a45cc9de37ca01966ca0b11857ac8fa108a360/vsort-1.0.2.tar.gz",
    "platform": null,
    "description": "# vsort\n\n\n[![PyPI version](https://badge.fury.io/py/vsort.svg)](https://badge.fury.io/py/vsort)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\nThis 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.\n\n\n## Installation\n\n\nYou can install `vsort` via pip:\n\n\n```bash\npip install vsort\n```\n\n\n## Usage \n\n\n### For selection sort algorithm\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])\nx.selection_sort()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1-uqA1tvz0QjtyAjhPJY_HarxoBKQZ9-o/view?usp=drive_link\n\n\n### For bubble sort algorithm\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])\nx.bubble_sort()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1KhYNYXrsGpH4noM20tJAKtgqJpoJ3HBV/view?usp=sharing\n\n\n### For insertion sort algorithm\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])\nx.insertion_sort()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1KHgl5-F4yepKj8H-VB2X-I1D3dReum1A/view?usp=drive_link\n\n\n### For shell sort algorithm\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])\nx.shell_sort()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1uTvzLAZi453u3Q8ywXl6vx7Zcjwxz7Cr/view?usp=drive_link\n\n\n### For heap sort algorithm\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29])\nx.heap_sort()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1Gwv_zdUUHWG894W3NV_LSaN3xod638BY/view?usp=drive_link\n\n\n#### You can sort in descending order \n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], reverse=True)\n```\n\n\n#### You can reduce the sorting speed\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], speed=7)\n```\n\n\n#### You can control the sorting steps by pressing Enter\n\n\n```python\nfrom vsort import sortVisualizer\n\n\nx = sortVisualizer([70, 10, 7, 100, 96, 85, 83, 8, 87, 29], control=True)\n```\n\n\n## License\n\n\nThis project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Sophisticate Sorting Algorithms",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://pypi.org/project/vsort/"
    },
    "split_keywords": [
        "sorting",
        "algorithms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6013eef0ee88b0a018c184154240ec363a3eea8da4825f0d3cb2f0940372735",
                "md5": "e6dc97e75bd95caca147781a6cbcb887",
                "sha256": "9d03811ebb32532628319bbbabdbd882c2d6a20db73af6e02790b2db28bfcacc"
            },
            "downloads": -1,
            "filename": "vsort-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6dc97e75bd95caca147781a6cbcb887",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8042,
            "upload_time": "2024-11-15T15:13:40",
            "upload_time_iso_8601": "2024-11-15T15:13:40.903160Z",
            "url": "https://files.pythonhosted.org/packages/d6/01/3eef0ee88b0a018c184154240ec363a3eea8da4825f0d3cb2f0940372735/vsort-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "583f48f9c0d6cf78ddfa67ea75a45cc9de37ca01966ca0b11857ac8fa108a360",
                "md5": "495e71fd200d0b679316b356a7988bbc",
                "sha256": "252974cddd99547b54c04fef75fb7e6c8d639f8c8dd690ce5b71fc3e4b646933"
            },
            "downloads": -1,
            "filename": "vsort-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "495e71fd200d0b679316b356a7988bbc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 8152,
            "upload_time": "2024-11-15T15:13:42",
            "upload_time_iso_8601": "2024-11-15T15:13:42.102613Z",
            "url": "https://files.pythonhosted.org/packages/58/3f/48f9c0d6cf78ddfa67ea75a45cc9de37ca01966ca0b11857ac8fa108a360/vsort-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-15 15:13:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vsort"
}
        
Elapsed time: 0.35023s