Skip to main content

QuickSortPy

QuickSortPy (by RapidDragon2612) is a Python implementation of the Quick Sort algorithm.

Quick Sort is widely regarded as one of the fastest and most efficient general-purpose sorting algorithms.


Installation

Install QuickSortPy using pip:

pip install quicksortpy

Usage

Import the library in your Python file:

import quicksortpy

Sort an array (in-place)

quicksortpy.sort(example_array)

This will sort example_array in place.


Sort into a new array

sorted_arr = quicksortpy.sort(example_array, True)

This returns a new sorted array without modifying the original.


Visualization

For educational purposes, you can visualize how the Quick Sort algorithm works step by step:

quicksortpy.visualize(example_array)

This will display each step the algorithm takes while sorting the array.


Notes

  • The sort() function accepts:
    • array: The list to sort
    • new_arr (optional): Set to True to return a new sorted list instead of modifying the original

Release files for quicksortpy 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quicksortpy 1.1
File Size Uploaded
quicksortpy-1.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quicksortpy 1.1
File Interpreter ABI Platform
quicksortpy-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 kB

Release files / quicksortpy-1.1.tar.gz

Download URL quicksortpy-1.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3e4d26caf57f9285a37b168cf7c56fd55f0f05dd26d3092cab25082d32a5b0d
BLAKE2b-256 checksum
How to use checksums
166bac7269f9f81f5c74a4c61e0f1c30144b393e46f69ba2a53b9352863fc260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Release files / quicksortpy-1.1-py3-none-any.whl

Download URL quicksortpy-1.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbe0fa4547fd3da86b77263bab22277b2a542a966df042963580c5c272e7994a
BLAKE2b-256 checksum
How to use checksums
00f427aaa1428f95157986b1e7cd5e90adb8315897753feabc29965b522e398c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Release history Release notifications | RSS feed

1.1.1

2 release files

This release

1.1 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page