Socket
Book a DemoInstallSign in
Socket

pysorters

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pysorters

A package with all sorting algorithms.

0.5.6
Source
pipPyPI
Maintainers
1

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

  • 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]                
    
  • 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.

Keywords

sorting algorithms

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.