Tagged articles
6 articles
Page 1 of 1
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 PresentationPython
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.

CLITableTutorial
0 likes · 12 min read
Using PrettyTable in Python to Display Structured CLI Tables
MaGe Linux Operations
MaGe Linux Operations
Feb 20, 2021 · Operations

How to Turn CLI Output into Beautiful Tables with Python’s PrettyTable

This tutorial shows how to use the Python PrettyTable library to format command‑line data into readable tables, covering installation, basic usage, adding rows or columns, importing from CSV, databases or HTML, customizing output formats, selective printing, sorting, and styling options.

data-displayprettytabletable-formatting
0 likes · 13 min read
How to Turn CLI Output into Beautiful Tables with Python’s PrettyTable
MaGe Linux Operations
MaGe Linux Operations
May 28, 2017 · Backend Development

Build a Python CLI to Fetch 12306 Train Tickets in Seconds

This tutorial walks you through creating a Python command‑line tool named “tickets” that, using virtualenv, docopt, and prettytable, retrieves real‑time train ticket information from China’s 12306 service by specifying departure, destination, and date, and displays the results in a formatted table.

CLIdocoptprettytable
0 likes · 3 min read
Build a Python CLI to Fetch 12306 Train Tickets in Seconds