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.3.tar.gz
(3.1 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.3.tar.gz.
File metadata
- Download URL: listele-1.0.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37a6f66778ed65f66136699fc47272ee0739b39a7bd181856cbcf71a5109603
|
|
| MD5 |
79bed2deea314bd665491988938d1dc0
|
|
| BLAKE2b-256 |
940d806ee0dce414db9f44bf930504f2d3d0b033fbbc6bd265b7da97713b6bf1
|
File details
Details for the file listele-1.0.3-py3-none-any.whl.
File metadata
- Download URL: listele-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf894d587f6889f6589024c35c1f31b8b51b2a0a2591ed289a1dc563d96d743
|
|
| MD5 |
ad650a24b302f68b7c7e509fe66d7edf
|
|
| BLAKE2b-256 |
d007c9bbe8b4d700a25c39031b400d099085ea91f1728aa360dce4d0482b3bed
|