Just a printing listed version function.
Project description
listele function
Prints the given iterable in a listed format with columns and spacing.
listele(li:list|dict, column:int, /, *, spaces:int=30, find:str="", reverse:bool=False)
"""
- li : An iterable
- column : Output column number
- spaces : Spaces between elements
- find : Filters the output with given string
- reverse : Prints elements top to bottom instead of left to right (disabled by default)
"""
# Usage example:
from listele import listele
import sysconfig
li = dir(sysconfig) # list type object
di = sysconfig.get_paths() # dict type object
print("Output1:")
listele(li, 4)
print("\n\nOutput2:")
listele(li, 4, find="path")
print("\n\nOutput3:")
listele(di, 2, spaces=70)
print("\n\nOutput4:")
listele(di, 1, find="include")
print("\n\nOutput5:")
listele([1, 2, 3, 4, 5], 3, reverse=True)
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
listele-1.0.1.tar.gz
(3.0 kB
view details)
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 listele-1.0.1.tar.gz.
File metadata
- Download URL: listele-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3ccdba80598887d7aa8d5e1d4d2875320723ac0992d7d6e904ba06590ae7f6
|
|
| MD5 |
cb3a483d52e362f120c8d304db2d3703
|
|
| BLAKE2b-256 |
3903dc711db2baff20ce38e1842a53bf544f092657116b8efb8e78977261514b
|
File details
Details for the file listele-1.0.1-py3-none-any.whl.
File metadata
- Download URL: listele-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2a013a70674d021250604266c071e17d647e25405a5e539d82da25964a559a
|
|
| MD5 |
60f2cd09b76ed833cae0835065d21f66
|
|
| BLAKE2b-256 |
8b38bb4286f360e7f26027eac71dc7bdcc5900241bf59e8246d0d26cb86c1129
|