allsort
allsort is a Python utility for sorting various iterable types such as dictionaries, lists, tuples, and sets. It's lightweight, easy to use, and works with custom sorting criteria.
Installation
Install with pip:
pip install allsort
Usage
from allsort.allsort import sortit
# Sorting a list
nums = [3, 1, 4, 1, 5]
print(sortit(nums)) # [1, 1, 3, 4, 5]
# Sorting a dictionary by values
data = {'a': 3, 'b': 1, 'c': 2}
print(sortit(data, key=1)) # {'b': 1, 'c': 2, 'a': 3}
# Sorting a set
nums_set = {3, 1, 4, 1, 5}
print(sortit(nums_set)) # [1, 3, 4, 5]
Features
-
Sorts lists, tuples, sets, and dictionaries.
-
Supports ascending and descending orders.
-
Allows custom sorting keys for flexibility.
Contributions
Contributions are welcome! Fork the repository and submit a pull request.
Release files for allsort 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| allsort-0.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allsort-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / allsort-0.1.0.tar.gz
| Download URL | allsort-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af19ab1a53145dce86b0d4eec00145d3fe06e262791611034093e5ebcb8e95fd
|
|
BLAKE2b-256 checksum How to use checksums |
a0e8c55f1cfb827ee1b746b7723e4431af01227cc41e15ed8dfa6b0fe06e3cae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.1
|
Release files / allsort-0.1.0-py3-none-any.whl
| Download URL | allsort-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eafb7353fd890ce529e9496dfe5b3dd00f3169125c9977473e265e198deddc9e
|
|
BLAKE2b-256 checksum How to use checksums |
fa8f48deb1c0adc9e7685c820d80c4d98726e194473fbdcddac53a1330ad2215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.1
|