Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ptable2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptable2

A simple Python library for easily displaying tabular data in a visually appealing ASCII table format

  • 0.9.3
  • PyPI
  • Socket score

Maintainers
1

============= About ptable2

ptable2 is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables, originally forked from PTable <https://github.com/kxxoling/PTable/>_.

.. image:: https://travis-ci.org/madebr/ptable2.svg :target: https://travis-ci.org/madebr/ptable2 :alt: Build Status

.. image:: https://landscape.io/github/madebr/ptable2/master/landscape.svg?style=flat :target: https://landscape.io/github/madebr/ptable2/master :alt: Code Health

.. image:: https://coveralls.io/repos/github/madebr/ptable2/badge.svg?branch=master :target: https://coveralls.io/github/madebr/ptable2?branch=master :alt: Coverage

Installation

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

As always, you can install ptable2 in 3 ways.

Via pip (recommend)::

pip install ptable2

From source::

python setup.py install

Quick start

ptable2 supports two kinds of usage:

As a library

ptable2 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 <http://ptable.readthedocs.org/>_.

As command-line tool

This is an original function of ptable2, 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.

  • Source Code (GitHub) <https://github.com/madebr/ptable2>__
  • RTFD <https://ptable.readthedocs.org>__
  • PyPI <https://pypi.python.org/pypi/ptabl://pypi.python.org/pypi/ptable>__
  • PrettyTable <https://code.google.com/p/prettytable/>_

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc