# 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)
![GitHub Tag](https://img.shields.io/github/v/tag/yo1am1/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",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10, <=3.12",
"maintainer_email": "",
"keywords": "sorting algorithms,bubble sort,merge sort,quick sort,insertion sort,selection sort,heap sort,radix sort,counting sort,bucket sort,sort,sorting,algorithms,python,pysorters_project",
"author": "yo1",
"author_email": "bigdiebam@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f0/e6/46485b43f0927ef7c858ea29917a89e9e6fa1521170b326e19612d6f9d22/pysorters-0.5.4.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![GitHub Tag](https://img.shields.io/github/v/tag/yo1am1/pysorters)\r\n\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.4",
"project_urls": {
"Homepage": "https://github.com/yo1am1/pysorters",
"Source": "https://github.com/yo1am1/pysorters"
},
"split_keywords": [
"sorting algorithms",
"bubble sort",
"merge sort",
"quick sort",
"insertion sort",
"selection sort",
"heap sort",
"radix sort",
"counting sort",
"bucket sort",
"sort",
"sorting",
"algorithms",
"python",
"pysorters_project"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e3758dafa72f54c29d8efc71cbba277b952da2d770e87762d686bd6b61283fce",
"md5": "aea3975083a8779912041458aa476517",
"sha256": "06f1d5650bb225b62345e8d756e82462a678779f8cd73f6d202bf1fe7bd6519d"
},
"downloads": -1,
"filename": "pysorters-0.5.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "aea3975083a8779912041458aa476517",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10, <=3.12",
"size": 8746,
"upload_time": "2024-03-05T23:29:17",
"upload_time_iso_8601": "2024-03-05T23:29:17.790198Z",
"url": "https://files.pythonhosted.org/packages/e3/75/8dafa72f54c29d8efc71cbba277b952da2d770e87762d686bd6b61283fce/pysorters-0.5.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f0e646485b43f0927ef7c858ea29917a89e9e6fa1521170b326e19612d6f9d22",
"md5": "b79f7cac5a5ab55de7572862100bffa2",
"sha256": "d2e09464d199485aeeeb1fbf67c0f39800aff87d0d030bcf261c24678c1e11b0"
},
"downloads": -1,
"filename": "pysorters-0.5.4.tar.gz",
"has_sig": false,
"md5_digest": "b79f7cac5a5ab55de7572862100bffa2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10, <=3.12",
"size": 8571,
"upload_time": "2024-03-05T23:29:19",
"upload_time_iso_8601": "2024-03-05T23:29:19.507860Z",
"url": "https://files.pythonhosted.org/packages/f0/e6/46485b43f0927ef7c858ea29917a89e9e6fa1521170b326e19612d6f9d22/pysorters-0.5.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-05 23:29:19",
"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"
}