Tag

PrettyTable

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Oct 27, 2021 · Backend Development

Using PrettyTable in Python to Create Formatted Command‑Line Tables

This article introduces the PrettyTable Python library, explains how to install it, demonstrates creating tables with headers, adding rows and columns, importing data from CSV, databases, or HTML, and shows various output formats and styling options for clear command‑line presentation.

CSVData PresentationPrettyTable
0 likes · 13 min read
Using PrettyTable in Python to Create Formatted Command‑Line Tables
Python Programming Learning Circle
Python Programming Learning Circle
Mar 20, 2021 · Backend Development

Using PrettyTable in Python to Display Structured CLI Tables

This article introduces the PrettyTable library for Python, explains how to install it, demonstrates various ways to create and populate tables—including row, column, CSV, database, and HTML sources—covers output formats, selective printing, sorting, and styling options, and provides complete code examples for each feature.

PrettyTableclidata-display
0 likes · 12 min read
Using PrettyTable in Python to Display Structured CLI Tables
Python Programming Learning Circle
Python Programming Learning Circle
Jun 2, 2020 · Backend Development

Building a Command-Line Train Ticket Query Tool with Python

This tutorial explains how to create a Python CLI application named tickets that parses command-line arguments, retrieves station codes, queries the 12306 railway API for ticket data, and displays the results in a formatted table using libraries such as docopt, requests, and prettytable.

PrettyTablePythonRequests
0 likes · 7 min read
Building a Command-Line Train Ticket Query Tool with Python
Python Programming Learning Circle
Python Programming Learning Circle
Apr 27, 2020 · Backend Development

Using PrettyTable in Python to Display Tabular Data in the Command Line

This article explains how to install the PrettyTable library, create and populate tables with rows or columns, import data from CSV, databases, or HTML, customize output formats and styles, and selectively display or sort table content for Python command‑line tools.

PrettyTableTable Formattingcli
0 likes · 13 min read
Using PrettyTable in Python to Display Tabular Data in the Command Line