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.2.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.2.tar.gz.
File metadata
- Download URL: listele-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8902008b4fa9da18ca0a0f12f475ae9839c5dc3607db46ef41f9cb105dd7ffb
|
|
| MD5 |
9bd0cef1ce1ee82f8d3dba62b8fff9ac
|
|
| BLAKE2b-256 |
e160da80febfd5898dbab2b0991119c2f713df981b29962964f222189c748d4e
|
File details
Details for the file listele-1.0.2-py3-none-any.whl.
File metadata
- Download URL: listele-1.0.2-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.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a13875b78627b04d7d64a763c3b428363690a1e03f425e612585063b1cbe5b5
|
|
| MD5 |
d87967423333884d2108da2f30318106
|
|
| BLAKE2b-256 |
746842d5e91fa931d9272d5b075019d493899accf1ca1eb1cc4b3d2238203e05
|