Skip to main content

PTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables, originally forked from PrettyTable.

Build Status Code Health Coverage

Installation

As PTable is a fork of PrettyTable, and compatible with all its APIs, so PTable is usage is the same as PrettyTable, and the installation would cover on the original PrettyTable.

As always, you can install PTable in 3 ways.

Via pip (recommend):

pip install PTable

Via easy_install:

easy_install PTable

From source:

python setup.py install

Quick start

PTable supports two kinds of usage:

As a library

PTable library API is almost as PrettyTable, you can import the same API from prettytable library:

from prettytable import PrettyTable
x = PrettyTable()

A better hosted document is hosted on ReadTheDocument.

As command-line tool

This is an original function of PTable, can be used as ptable command:

ptable --csv somefile.csv

or a Unix style pipe:

cat somefile.csv | ptable

Will both print a ASCII table in terminal.

Release files for PTableUnicode 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PTableUnicode 0.9.3
File Size Uploaded
PTableUnicode-0.9.3.tar.gz 22.0 kB Details

Release files / PTableUnicode-0.9.3.tar.gz

Download URL PTableUnicode-0.9.3.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee4e3551e981344e562e08a96e5f057569ae574eda32dc821477b37daf7391b
BLAKE2b-256 checksum
How to use checksums
0f667e414989a61b250877bbf1bc3f3480700b699ab0efebf70e6530496c1f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.9.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page