A package designed to simplify the display of data in a tabular format.
Project description
Introduction
"pyCliTable" is a Python package designed to simplify the display of data in a tabular format within the command-line interface (CLI). This package offers an intuitive and user-friendly way to present structured data, making it easy for developers and users to visualize information neatly organized into rows and columns. With customizable styling options, "pyCliTable" streamlines the process of creating tables, enhancing the readability and presentation of data for CLI applications.
Additionally, the intelligent algorithm within pyCliTable detects missing data within a specific row and seamlessly replaces it with *****, ensuring a continuous, polished presentation of your data. This feature seamlessly integrates into its functionality, allowing pyCliTable to maintain its magic throughout.
Installation:
pip install pyCliTable
Or see https://pypi.org/project/pyCliTable/
Example:
from pyclitable import pyCliTable
data = [
{
"ID": ["1", "2", "3"]
},
{
"NAME": ["John", "Doe", "Quick"]
},
{
"LOCATION": ["Foobar Foobar Foobar", "Foobar Foobar", "Foobar"]
},
{
"INTRODUCTION": [
"Hello! My name is John Doe and I'm from the bustling city of New York.",
"I have a passion for technology and enjoy exploring the diverse cultures that thrive in this vibrant city.",
"As a software engineer, I'm dedicated to creating innovative solutions that impact people's lives positively."
]
}
]
config = ["Green", "italic"]
header_config = ["bold", "red"]
result = pyCliTable.table(data=data, config=config, table_color="red", header_config=header_config, word_space=1)
print(result)
The following are the valid values for config and and header_config arguments.
config = ["red", "green", "yellow", "blue", "magenta", "cyan", "white", "underline", "bold", "italy"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pyclitable-0.0.6.tar.gz.
File metadata
- Download URL: pyclitable-0.0.6.tar.gz
- Upload date:
- Size: 335.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.14.2 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b847211003350735bf910fe02e13e10447ac72922d1aea6656fe8b6853829ef
|
|
| MD5 |
34211f7bb5d236dcb02991a925e560f0
|
|
| BLAKE2b-256 |
70c615e495ca07bdcd8679f087578d0b059c987f121d1d923ebef0aef5d905c1
|
File details
Details for the file pyclitable-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: pyclitable-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.14.2 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a4a68df455709a6453020d947e2d28ae1a6bf2607d4fe223fb99ee29c735e33
|
|
| MD5 |
c3171b395a69a03a2a8f5545c2106bf3
|
|
| BLAKE2b-256 |
752a94e0bfd1c629f422c7c83554db0f5040b8e3ddc67a573bc44efa1f95f9d7
|