All Projects â†’ nirum â†’ Tableprint

nirum / Tableprint

Licence: mit
Pretty console printing 📋 of tabular data in python 🐍

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tableprint

Oxidtools
200 TOOLS BY 0XID4FF0X FOR TERMUX
Stars: ✭ 143 (-6.54%)
Mutual labels:  terminal
Kittik
Create slides in TypeScript and present them in the terminal using ASCII only!
Stars: ✭ 147 (-3.92%)
Mutual labels:  terminal
Rpi Display
2.8" TFT-Display with Touchpanel for all Raspberry Pi Models
Stars: ✭ 151 (-1.31%)
Mutual labels:  display
Liveov7670
A step-by-step guide to building the circuit for this project:
Stars: ✭ 143 (-6.54%)
Mutual labels:  display
Vue Command
A fully working, most feature-rich Vue.js terminal emulator
Stars: ✭ 147 (-3.92%)
Mutual labels:  terminal
Terminal Icons
Beautiful icons for your favourite terminal apps like Hyper and iTerm2
Stars: ✭ 149 (-2.61%)
Mutual labels:  terminal
Purify
🌈 Clean & vibrant color schemes for Vim, Terminals...
Stars: ✭ 142 (-7.19%)
Mutual labels:  terminal
Smenu
smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.
Stars: ✭ 1,906 (+1145.75%)
Mutual labels:  terminal
Esp32 epaper example
Full featured ePaper library for ESP32 with demo application
Stars: ✭ 147 (-3.92%)
Mutual labels:  display
Oh My Bash
A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
Stars: ✭ 2,605 (+1602.61%)
Mutual labels:  terminal
Terminal Advancednewfile
Fast creation of files and directories. Mimics the operation of AdvancedNewFile (Vim plugin)
Stars: ✭ 134 (-12.42%)
Mutual labels:  terminal
Iterm2 Icons
Replacement icon for iTerm2 or other macOS terminal apps. Designed for Big Sur.
Stars: ✭ 146 (-4.58%)
Mutual labels:  terminal
Cast Sh
📟 An instance of your terminal in your browser
Stars: ✭ 151 (-1.31%)
Mutual labels:  terminal
Img term
Display image, video or USB camera in your ANSI terminal!
Stars: ✭ 143 (-6.54%)
Mutual labels:  terminal
Vixl44
Create pixel art inside your terminal using vim movements
Stars: ✭ 152 (-0.65%)
Mutual labels:  terminal
Cli Menu
đŸ–Ĩ Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
Stars: ✭ 1,776 (+1060.78%)
Mutual labels:  terminal
Goploy
Deploy, CI/CD, Xterm, APP monitor, Crontab Manager.
Stars: ✭ 147 (-3.92%)
Mutual labels:  terminal
Terminal In React
👨‍đŸ’ģ A component that renders a terminal
Stars: ✭ 1,939 (+1167.32%)
Mutual labels:  terminal
Linefeed
Configurable, extensible, interactive line reader
Stars: ✭ 152 (-0.65%)
Mutual labels:  terminal
S
Open a web search in your terminal.
Stars: ✭ 1,942 (+1169.28%)
Mutual labels:  terminal

tableprint

Pretty console printing 📋 of tabular data in python 🐍

build codecov docs pypi

ℹī¸Ž About

tableprint lets you easily print formatted tables of data. Unlike other modules, you can print single rows of data at a time (useful for printing ongoing computation results).

Example output

🔎 Table of Contents

đŸ’ģ Installation

pip install tableprint

🏃 Usage

The table function takes in a matrix of data, a list of headers, a width (defaults to 11) and a style (defaults to 'round'). To print a dataset consisting of 10 rows of 3 different columns with the default width and style:

import tableprint as tp
import numpy as np

data = np.random.randn(10, 3)
headers = ['Column A', 'Column B', 'Column C']

tp.table(data, headers)

The header and row functions allow you to print just the header or just a row of data, respectively, which is useful for continuously updating a table during a long-running computation. Also, the banner function is useful for just printing out a nicely formatted message to the user.

The TableContext context manager is useful for dynamically updating tables (e.g. during a long running computation):

import tableprint as tp
import numpy as np
import time

with tp.TableContext("ABC") as t:
    for _ in range(10):
        time.sleep(0.1)
        t(np.random.randn(3,))

📚 Documentation

Hosted at Read The Docs: tableprint.readthedocs.org

đŸ“Ļ Dependencies

❤ī¸ Contributors

Thanks to: @nowox, @nicktimko, @mubaris, and @sumanthratna for contributions.

🛠 Changelog

Version Release Date Description
0.9.1 Aug 9 2020 Drops python2 support.
0.9.0 May 16 2020 Adds support for automatically determining the table's width.
0.8.0 Oct 24 2017 Improves support for international languages, removes numpy dependency
0.7.0 May 26 2017 Adds a TableContext context manager for easy creation of dynamic tables (tables that update periodically). Adds the ability to pass a list or tuple of widths to specify different widths for different columns
0.6.9 May 25 2017 Splitting the tableprint.py module into a pacakge with multiple files
0.6.7 May 25 2017 Fixes some bugs with ANSI escape sequences
0.5.0 Sept 29 2016 Better handling of ANSI escape sequences in table rows
0.4.0 May 3 2016 Adds a 'block' style
0.3.2 May 3 2016 Adds a test suite
0.3.0 May 3 2016 Adds custom styles for tables, specified by a key ('fancy_grid', 'grid', etc.)
0.2.0 May 2 2016 Adds better python2 (unicode/bytes) compatibility
0.1.5 Oct 1 2015 Renamed hrtime to humantime, added docs
0.1.4 Sept 28 2015 Added human readable string converter (hrtime)
0.1.0 Feb 24 2015 Initial release

🔓 License

MIT. See LICENSE.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].