• Stars
    star
    129
  • Rank 277,651 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

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.

Relative links

More Repositories

1

blog

个人博客
MDX
118
star
2

markdown2pdf

[Deprecated] A command line tool to convert markdown file to pdf.
CSS
64
star
3

OpenDataChina

中华人民共和国开放数据索引
46
star
4

kaomoji

Click to copy your favorite kaomoji!
JavaScript
45
star
5

cf-status-page

Status page auto deployed on Cloudflare
TypeScript
29
star
6

waifu-cli

A waifu2x CLI wrapper.
Python
20
star
7

jupyter-clojure-docker

Docker image for clojupyter.
Dockerfile
14
star
8

sanic_video_streaming

Live video streaming server built with Sanic framework and opencv-python.
Python
12
star
9

PythonChina.app

Python China 非官方客户端(DEPRECATED)
JavaScript
11
star
10

TouchBarNyanCat

Swift
10
star
11

flask-shellplus

Provide a Flask shell command based on Flask-Script to enhance its shell.
Python
9
star
12

sigh

What a sigh today! [Deprecated]
Python
7
star
13

Python-One-to-Million

A Book
CSS
7
star
14

cf-workers-saucenao-tg-bot

A SauceNAO Telegram bot deployed on Cloudflare workers
TypeScript
6
star
15

monkey_scripts

TamperMonkey scripts.
JavaScript
6
star
16

AR-Overload-Chick

HTML
5
star
17

flask-video-streaming

Video Streaming with Flask
Python
5
star
18

chatter

A chatting app based on Django Channels and Vue.js.
Python
5
star
19

nextui-tsr-template

Another React starter template based on nextui, tanstack-router, vite, vitest, TailwindCSS.
TypeScript
4
star
20

librorum

提供基于 Redis 的补全&搜索功能
Python
3
star
21

fuckyou

A python implementation of (╯°□°)╯︵sǝssǝɔoɹd oʎ llɐ llıʞǝɓɐɹ project
Python
2
star
22

image2ascii

Python 实现的图片转 ASCII 码脚本
HTML
2
star
23

AcFunStickers

AC 娘 iMessage 表情包
2
star
24

kela.la

A Honkai: Star Rail Warp Analysis Tool based on Next.js.
TypeScript
2
star
25

ubuntu-setup-script

Ubuntu setup scripts
Shell
1
star
26

tornado-chs-docs

Tornado 中文文档
Python
1
star
27

bangumi

DEPRECATED
Python
1
star
28

pixiv_ugoku

Simple Pixiv animated image downloader.
Python
1
star
29

doubanspider

A Douban spider for learning purpose.
Python
1
star
30

transform.tauri

transform.tools bundler built with Tauri
Rust
1
star
31

flask-decorators

A list of Flask decorator utilities not include in the origin flask project
Python
1
star
32

resume

My resume for new job. [DEPRECATED]
CSS
1
star
33

use

Things I'm using.
1
star
34

pokemon-go

Pokemon Go Go Go!
Vue
1
star
35

o3o.py

https://github.com/turingou/o3o 的 Python 版本
Python
1
star
36

react-github

A set of GitHub components
TypeScript
1
star
37

kxxoling

My README Profile
1
star