Skip to main content

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 beautiprint 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


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.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prettyprintplus-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file prettyprintplus-0.1.0.tar.gz.

File metadata

  • Download URL: prettyprintplus-0.1.0.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

Hashes for prettyprintplus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd9d8ec8ce3e31aa71ab59285e02ebdc5413d8310b129f999082b58b281f6b88
MD5 5c631c07a87dff304d5468112a384451
BLAKE2b-256 0e7d388d5a9e5617248857c6357b58f6fc145262ecb7b7ef2713e602f7b639c5

See more details on using hashes here.

File details

Details for the file prettyprintplus-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prettyprintplus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66c5e33544552a7c6cb4a436d46d16ea397dcef475cda673bee40a763b4d40f2
MD5 108fd765805842bf1c51f511ab4a26af
BLAKE2b-256 920d2c3511a6efdd5946d850986c733b1fed5769ada0044bd15498ce61c19bc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page