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


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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for prettyprintplus-0.1.1.tar.gz
Algorithm Hash digest
SHA256 198b6b68ca0f52086118197549f8b253f02c2ad565dfa5a9756a0aca7d25012b
MD5 f608043566e6d5291bde62dc10841b8a
BLAKE2b-256 16877769107e45822aed06a28586ee8a575c15f1ab69482402a0d4dc838e87ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prettyprintplus-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3dbfab675d151695f82c70ef09ec073c01e4b3ae54371706aa10a100e6824eee
MD5 a316f5c654509839176e66c56ad17a67
BLAKE2b-256 a01b3df8fe9b7ea2729b9dcb7d9b5f0f49bad85325746ef6f0326d6d7070e649

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