A Python package for beautifying terminal output and tables
Project description
Table Creation Example
The Table class allows you to create and print structured tables with headers and rows.
Example:
from prettyprintplus import Table
# Define table headers
table = Table(headers=["Name", "Age", "City"])
# Add rows to the table
table.add_row(["Alice", "30", "New York"])
table.add_row(["Bob", "25", "Los Angeles"])
# Access specific data
print(table.get_row(1)) # Outputs: ['Bob', '25', 'Los Angeles']
print(table.get_column("City")) # Outputs: ['New York', 'Los Angeles']
# Print the table
table.print()
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
prettyprintplus-0.1.1.tar.gz
(2.4 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 prettyprintplus-0.1.1.tar.gz.
File metadata
- Download URL: prettyprintplus-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
198b6b68ca0f52086118197549f8b253f02c2ad565dfa5a9756a0aca7d25012b
|
|
| MD5 |
f608043566e6d5291bde62dc10841b8a
|
|
| BLAKE2b-256 |
16877769107e45822aed06a28586ee8a575c15f1ab69482402a0d4dc838e87ba
|
File details
Details for the file prettyprintplus-0.1.1-py3-none-any.whl.
File metadata
- Download URL: prettyprintplus-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dbfab675d151695f82c70ef09ec073c01e4b3ae54371706aa10a100e6824eee
|
|
| MD5 |
a316f5c654509839176e66c56ad17a67
|
|
| BLAKE2b-256 |
a01b3df8fe9b7ea2729b9dcb7d9b5f0f49bad85325746ef6f0326d6d7070e649
|