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.
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:
from prettytable import PrettyTable
x = PrettyTable()
A better hosted document is hosted on ReadTheDocument.
As command-line tool
This is an original function of ptable2, 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
Metadata
Release files for ptable2 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ptable2-0.9.3.linux-x86_64.tar.gz | 34.6 kB | Without provenance | Details for ptable2-0.9.3.linux-x86_64.tar.gz |
Release files / ptable2-0.9.3.linux-x86_64.tar.gz
| Download URL | ptable2-0.9.3.linux-x86_64.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b301c39346e21a71d51357e371bc0ad9f2831f04c444c73f8371c4781c17a453
|
|
BLAKE2b-256 checksum How to use checksums |
18dccd8d801441aff95601fe695c306eaf63120707a162a63295ae3eb498970f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for ptable2 0.9.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.