Just a printing listed version function.
Project description
listele
Prints the given iterable in a listed format with columns and spacing.
Installation
pip install listele
Usage
from listele import listele
listele(li, column, /, *, spaces=30, find="", regex="", vertical=False)
Examples
Basic usage:
listele(range(1, 13), 4)
1 2 3 4
5 6 7 8
9 10 11 12
Filtering with find:
li = ['apple', 'apricot', 'banana', 'cherry', 'avocado', 'blueberry']
listele(li, 3, find="a")
apple apricot banana
avocado
Filtering with regex:
li = ['file1.txt', 'file2.txt', 'image1.png', 'image2.png', 'data.csv']
listele(li, 3, regex=".*\\.txt$")
file1.txt file2.txt
Vertical (top to bottom):
listele(range(1, 10), 3, vertical=True)
1 4 7
2 5 8
3 6 9
Dictionary:
d = {'name': 'Ali', 'age': 25, 'city': 'Istanbul', 'job': 'dev', 'lang': 'Python', 'tool': 'vim'}
listele(d, 2, spaces=25)
name: Ali age: 25
city: Istanbul job: dev
lang: Python tool: vim
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-2.0.0.tar.gz
(3.6 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-2.0.0.tar.gz.
File metadata
- Download URL: listele-2.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a7f01f188127f876beeabf452c82ea1083097da7965976d1ae57935f6d188e
|
|
| MD5 |
c9f0671679852d3248f036700c067373
|
|
| BLAKE2b-256 |
6853852106936a1588a1c8804dd5a6142de83e4a633d0387b5d2024c1465869d
|
File details
Details for the file listele-2.0.0-py3-none-any.whl.
File metadata
- Download URL: listele-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860a22e1ed5a192d6f5cc3a53c14e5b33e6b2c707147a89977ece974fb2ed9de
|
|
| MD5 |
bd849a03bb6854333e17c8c10204d92c
|
|
| BLAKE2b-256 |
751cb8a78bf889a01cec5e16c3238186e3adb4659d822a227593d48d09bb3cc0
|