Skip to main content

A package with all sorting algorithms.

Project description

pysorters

pytest Lint Coverage License: MIT GitHub last commit PyPI - Python Version GitHub repo size PyPI - Version GitHub Tag

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

Table of Contents

Installation

You can install the package via pip:

pip install pysorters

Or via git:

pip install git+https://github.com/yo1am1/pysorters.git

Usage

  1. Bubble Sort
     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
     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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysorters-0.5.6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

pysorters-0.5.6-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pysorters-0.5.6.tar.gz.

File metadata

  • Download URL: pysorters-0.5.6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pysorters-0.5.6.tar.gz
Algorithm Hash digest
SHA256 7e10c8d2287a29b69700a52d97591cbd12df514193b86a67aeedd5c1f9965941
MD5 872be391cb2d6091b9a40de9734f1149
BLAKE2b-256 5f37351c64c3ceccca2fca14df6186f963af7a6b8be0a476e66cdc9a838bec33

See more details on using hashes here.

File details

Details for the file pysorters-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: pysorters-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pysorters-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 517423aa078ed8007b4ba4068034221e2d57044a0d4f3f36ef15f6fa0a60f6cf
MD5 46dc3d315bbb5ad704fc27c8153d93f9
BLAKE2b-256 38152a55d34be994fdb8cc2c4867513a31a822314217d013e33eae9de7356a64

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page