Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kxxoling/PTable
PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables.
https://github.com/kxxoling/PTable
Last synced: 3 months ago
JSON representation
PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables.
- Host: GitHub
- URL: https://github.com/kxxoling/PTable
- Owner: kxxoling
- License: other
- Created: 2015-02-27T05:39:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T20:45:25.000Z (over 2 years ago)
- Last Synced: 2024-05-30T00:04:12.499Z (5 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/ptable
- Size: 253 KB
- Stars: 129
- Watchers: 8
- Forks: 44
- Open Issues: 25
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
- starred-awesome - PTable - PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables. (Python)
README
============
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 `_... image:: https://travis-ci.org/kxxoling/PTable.svg
:target: https://travis-ci.org/kxxoling/PTable
:alt: Build Status.. image:: https://landscape.io/github/kxxoling/PTable/master/landscape.svg?style=flat
:target: https://landscape.io/github/kxxoling/PTable/master
:alt: Code Health.. image:: https://coveralls.io/repos/github/kxxoling/PTable/badge.svg?branch=master
:target: https://coveralls.io/github/kxxoling/PTable?branch=master
:alt: CoverageInstallation
============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:.. code-block:: python
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:
.. code-block:: shell
ptable --csv somefile.csv
or a Unix style pipe:
.. code-block:: shell
cat somefile.csv | ptable
Will both print a ASCII table in terminal.
Relative links
==============* `Source Code (GitHub) `__
* `RTFD `__
* `PyPI `__
* `PrettyTable `_