Wormhole Sort
"Wormhole Sort" implements a way to sort your lists by sorting the indexes rather than the list elements. This way, the order of the elements is not modified, but the way you access the elements is.
What It Does & How to Use
Imagine you have the following list:
sample_list = [5, 3, -2, 12, 6, 120, 5]
You would like to sort this list, but you want the list data to remain the same. Instead of moving the elements, you just warp the topology of the spacetime manifold that exists in between the elements, reconnecting it in an ordered manner.
sorted_list = WormholeList(sample_list)
The result can be checked like so:
print("List data:", sorted_list)
print("List elements accessed in order:")
for i in range(len(sorted_list)):
print("Index", i, "=", sorted_list[i])
Which gives the following result as the output:
List data: [5, 3, -2, 12, 6, 120, 5]
List elements accessed in order:
Index 0 = -2
Index 1 = 3
Index 2 = 5
Index 3 = 5
Index 4 = 6
Index 5 = 12
Index 6 = 120
Metadata
Release files for WormholeSort 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| WormholeSort-1.0.1.tar.gz | 2.1 kB | Without provenance | Details for WormholeSort-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| WormholeSort-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for WormholeSort-1.0.1-py3-none-any.whl |
Total release size: 4.5 kB
Release files / WormholeSort-1.0.1.tar.gz
| Download URL | WormholeSort-1.0.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c45d5f8fa9b95ddbb318398459e109f08ea57bc5b3a858da22e219d40b65b606
|
|
BLAKE2b-256 checksum How to use checksums |
df8ddc7610749c1662e942fa36cc45d44bc4c6854085bac02c3473d45e34ae66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / WormholeSort-1.0.1-py3-none-any.whl
| Download URL | WormholeSort-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2670aa6f925a0a9a76a7e60d7431ebe6e5d64d037035ee8ae5757d43f197c8f
|
|
BLAKE2b-256 checksum How to use checksums |
9cfcbec3affae75ceb99fd570cf0e5fa80b417c6e0e42ed9b9930dbc56077e12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Security for WormholeSort 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.