pysorters-project


Namepysorters-project JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/yo1am1/pysorters
SummaryA package with all sorting algorithms.
upload_time2024-03-05 01:38:34
maintainer
docs_urlNone
authoryo1
requires_python>=3.10, <=3.12
licenseMIT
keywords sorting algorithms bubble sort merge sort quick sort sort sorting algorithms python pysorters_project
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pysorters
[![pytest](https://github.com/yo1am1/pysorters/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/yo1am1/pysorters/actions/workflows/test.yaml) 
[![Lint](https://github.com/yo1am1/pysorters/actions/workflows/black.yaml/badge.svg?branch=main)](https://github.com/yo1am1/pysorters/actions/workflows/black.yaml)
![Coverage](https://github.com/yo1am1/pysorters/blob/main/coverage.svg)
[![License: MIT](https://img.shields.io/github/license/yo1am1/pysorters)](https://github.com/yo1am1/pysorters/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/yo1am1/pysorters)](https://github.com/yo1am1/pysorters/commits/main)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysorters)
![GitHub repo size](https://img.shields.io/github/repo-size/yo1am1/pysorters)
![PyPI - Version](https://img.shields.io/pypi/v/pysorters)

Python package with sort methods for everything you could even imagine! :rocket: :rocket: :rocket:


# Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

# Installation
You can install the package via pip:
```shell
pip install pysorters
```
Or via git:
```shell
pip install git+https://github.com/yo1am1/pysorters.git
```

# Usage
1. Bubble Sort
   ```python
    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]                
   ```
2. Quick Sort
   ```python
    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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yo1am1/pysorters",
    "name": "pysorters-project",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10, <=3.12",
    "maintainer_email": "",
    "keywords": "sorting algorithms,bubble sort,merge sort,quick sort,sort,sorting,algorithms,python,pysorters_project",
    "author": "yo1",
    "author_email": "bigdiebam@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/e9/ea2fd0fa1e1bb6768a308f751705813250c382c6b38d3a745757a90ca132/pysorters_project-0.5.1.tar.gz",
    "platform": null,
    "description": "# pysorters\r\n[![pytest](https://github.com/yo1am1/pysorters/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/yo1am1/pysorters/actions/workflows/test.yaml) \r\n[![Lint](https://github.com/yo1am1/pysorters/actions/workflows/black.yaml/badge.svg?branch=main)](https://github.com/yo1am1/pysorters/actions/workflows/black.yaml)\r\n![Coverage](https://github.com/yo1am1/pysorters/blob/main/coverage.svg)\r\n[![License: MIT](https://img.shields.io/github/license/yo1am1/pysorters)](https://github.com/yo1am1/pysorters/blob/main/LICENSE)\r\n[![GitHub last commit](https://img.shields.io/github/last-commit/yo1am1/pysorters)](https://github.com/yo1am1/pysorters/commits/main)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysorters)\r\n![GitHub repo size](https://img.shields.io/github/repo-size/yo1am1/pysorters)\r\n![PyPI - Version](https://img.shields.io/pypi/v/pysorters)\r\n\r\nPython package with sort methods for everything you could even imagine! :rocket: :rocket: :rocket:\r\n\r\n\r\n# Table of Contents\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [License](#license)\r\n\r\n# Installation\r\nYou can install the package via pip:\r\n```shell\r\npip install pysorters\r\n```\r\nOr via git:\r\n```shell\r\npip install git+https://github.com/yo1am1/pysorters.git\r\n```\r\n\r\n# Usage\r\n1. Bubble Sort\r\n   ```python\r\n    from pysorters import Sorter\r\n   \r\n    sort_1 = Sorter()\r\n    array = [3, 2, 1]\r\n   \r\n    sort_1.bubble_sort(array)\r\n   \r\n    print(array)\r\n    # [1, 2, 3]\r\n   \r\n    sort_2 = Sorter([10, 9, 6, 7, 8, 3, 5, 4, 2, 1])\r\n   \r\n    result = sort_2.quick_sort()\r\n   \r\n    print(result)\r\n    # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]                \r\n   ```\r\n2. Quick Sort\r\n   ```python\r\n    from pysorters import Sorter, gran_array_int\r\n   \r\n    sort = Sorter(gran_array_int(10, 1, 10))\r\n   \r\n    result = sort.quick_sort()\r\n   \r\n    print(result)\r\n   ```\r\n_... and many more!_\r\n\r\n# License\r\nThis project is licensed under the terms of the MIT license.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A package with all sorting algorithms.",
    "version": "0.5.1",
    "project_urls": {
        "Homepage": "https://github.com/yo1am1/pysorters",
        "Source": "https://github.com/yo1am1/pysorters"
    },
    "split_keywords": [
        "sorting algorithms",
        "bubble sort",
        "merge sort",
        "quick sort",
        "sort",
        "sorting",
        "algorithms",
        "python",
        "pysorters_project"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5030776fce747e85639f4df025e5f7b654898a388dadd7de1989a664ee501e6d",
                "md5": "2956fd2c69e06f383ac2de1bcf08f93a",
                "sha256": "784c5470d8c9a1d44d7cd092ca3df56aa9973aaf9d833b31a0a713cba1057480"
            },
            "downloads": -1,
            "filename": "pysorters_project-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2956fd2c69e06f383ac2de1bcf08f93a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10, <=3.12",
            "size": 9263,
            "upload_time": "2024-03-05T01:38:31",
            "upload_time_iso_8601": "2024-03-05T01:38:31.997778Z",
            "url": "https://files.pythonhosted.org/packages/50/30/776fce747e85639f4df025e5f7b654898a388dadd7de1989a664ee501e6d/pysorters_project-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1e9ea2fd0fa1e1bb6768a308f751705813250c382c6b38d3a745757a90ca132",
                "md5": "257b5a0159790fe0f35c5be24a63fd20",
                "sha256": "a062260355a5eef81ce1be862a42cecff2223b5e5beeae2ca542f1a0068c8777"
            },
            "downloads": -1,
            "filename": "pysorters_project-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "257b5a0159790fe0f35c5be24a63fd20",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10, <=3.12",
            "size": 8503,
            "upload_time": "2024-03-05T01:38:34",
            "upload_time_iso_8601": "2024-03-05T01:38:34.587502Z",
            "url": "https://files.pythonhosted.org/packages/c1/e9/ea2fd0fa1e1bb6768a308f751705813250c382c6b38d3a745757a90ca132/pysorters_project-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-05 01:38:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yo1am1",
    "github_project": "pysorters",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pysorters-project"
}
        
yo1
Elapsed time: 0.30891s