Skip to main content

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


Download files

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

Source Distribution

funsort-1.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

funsort-1.0.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

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

Hashes for funsort-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c198cbf6f04d916c8b36f5686a118c2d573601850ef0800889d9297be4fb1892
MD5 7228f8239aeedcd186448e8478f21549
BLAKE2b-256 a93293d02baaab6959fe98e25fb076ac4783d4c3a272dbcf36714535deceec84

See more details on using hashes here.

Provenance

The following attestation bundles were made for funsort-1.0.1.tar.gz:

Publisher: python-publish.yml on DairyProducts/funsort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for funsort-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02a9f0d8764d65978b041660d221ae93dd948985425db8bf3db274b469eaad71
MD5 7a8e21dcfb7b9f6d11e414fe142230c1
BLAKE2b-256 8d320182fc0eeabc78a5f004c0b2cf09c63d05ef4926d29b0de3d7afc2c9cf3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for funsort-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on DairyProducts/funsort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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