Fun sorting algorithms in Python!
Project description
funsort
A little Python package with fun sorting algorithms. Perfect if you would like a simple way to explore and compare various sorting algorithms, or if you just want to make your programs less efficient for no reason.
Important!
If you are reading this on PyPI, please note that this README was meant to be viewed with references to the project files. For a better experience, please view the README on GitHub by clicking here.
Usage
For a list of supported algorithms, see ALGORITHMS.md.
You can import a specific sorting function and use it to sort a list.
For example, to use the bubble_sort function:
from funsort import bubble_sort
data = [3, 1, 2]
print(bubblesort(data))
This will output:
[1, 2, 3]
You can also import the package of all prim-and-proper sorting algorithms and use any of the available functions. For example:
from funsort import Proper
data = [3, 1, 2]
print(Proper.bubble_sort(data))
Likewise, with the esoteric sorting algorithms:
from funsort import Esoteric
data = [3, 1, 2]
print(Esoteric.bogo_sort(data))
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file funsort-1.0.1.tar.gz.
File metadata
- Download URL: funsort-1.0.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c198cbf6f04d916c8b36f5686a118c2d573601850ef0800889d9297be4fb1892
|
|
| MD5 |
7228f8239aeedcd186448e8478f21549
|
|
| BLAKE2b-256 |
a93293d02baaab6959fe98e25fb076ac4783d4c3a272dbcf36714535deceec84
|
Provenance
The following attestation bundles were made for funsort-1.0.1.tar.gz:
Publisher:
python-publish.yml on DairyProducts/funsort
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
funsort-1.0.1.tar.gz -
Subject digest:
c198cbf6f04d916c8b36f5686a118c2d573601850ef0800889d9297be4fb1892 - Sigstore transparency entry: 1183373795
- Sigstore integration time:
-
Permalink:
DairyProducts/funsort@17fc9c444ec1b6955fb9b8085a8a5a07ceee8f1e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/DairyProducts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@17fc9c444ec1b6955fb9b8085a8a5a07ceee8f1e -
Trigger Event:
release
-
Statement type:
File details
Details for the file funsort-1.0.1-py3-none-any.whl.
File metadata
- Download URL: funsort-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02a9f0d8764d65978b041660d221ae93dd948985425db8bf3db274b469eaad71
|
|
| MD5 |
7a8e21dcfb7b9f6d11e414fe142230c1
|
|
| BLAKE2b-256 |
8d320182fc0eeabc78a5f004c0b2cf09c63d05ef4926d29b0de3d7afc2c9cf3d
|
Provenance
The following attestation bundles were made for funsort-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on DairyProducts/funsort
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
funsort-1.0.1-py3-none-any.whl -
Subject digest:
02a9f0d8764d65978b041660d221ae93dd948985425db8bf3db274b469eaad71 - Sigstore transparency entry: 1183373824
- Sigstore integration time:
-
Permalink:
DairyProducts/funsort@17fc9c444ec1b6955fb9b8085a8a5a07ceee8f1e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/DairyProducts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@17fc9c444ec1b6955fb9b8085a8a5a07ceee8f1e -
Trigger Event:
release
-
Statement type: