Skip to content
forked from kxxoling/PTable

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

License

Notifications You must be signed in to change notification settings

Autoplectic/PTable

 
 

Repository files navigation

About PTable

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 Downloads

Installation

As PTable is a fork of PrettyTable, and compatible to 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.

Relative links

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Makefile 1.0%