Skip to main content

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.

pyCliTable image example.

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

pyclitable-0.0.5.tar.gz (335.7 kB view details)

Uploaded Source

Built Distribution

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

pyclitable-0.0.5-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyclitable-0.0.5.tar.gz.

File metadata

  • Download URL: pyclitable-0.0.5.tar.gz
  • Upload date:
  • Size: 335.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyclitable-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3bd50129053479e8d8a588a684913b599c00c2b066dd1b2eb6d7b71520f1ce2d
MD5 de837c8d6dd547629ef0ed826920e443
BLAKE2b-256 fe0fd7864fef5eb46723a843b0caf40c2e009bff861ac91e26116fa726fb8e75

See more details on using hashes here.

File details

Details for the file pyclitable-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: pyclitable-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyclitable-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8bb478ccbe64fd6c2f4241fea0e495118f84103919ee2f1c415ca1c693bc7a59
MD5 d4d5f37a609649afe5b143abbaf71592
BLAKE2b-256 2709f539b68e530cc04981776da4d58075251eecbaa7aa1e2bc5625234f61d0b

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