All Projects → Robpol86 → Terminaltables

Robpol86 / Terminaltables

Licence: mit
Generate simple tables in terminals from a nested list of strings.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Terminaltables

Csconsoleformat
.NET C# library for advanced formatting of console output [Apache]
Stars: ✭ 296 (-56.79%)
Mutual labels:  terminal, console, library, ascii
Asciichart
Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
Stars: ✭ 1,107 (+61.61%)
Mutual labels:  terminal, console, ascii
Video To Ascii
It is a simple python package to play videos in the terminal using characters as pixels
Stars: ✭ 960 (+40.15%)
Mutual labels:  terminal, console, ascii
Ervy
Bring charts to terminal.
Stars: ✭ 1,530 (+123.36%)
Mutual labels:  terminal, console, ascii
Criterion
Microbenchmarking for Modern C++
Stars: ✭ 140 (-79.56%)
Mutual labels:  console, library, table
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+25.84%)
Mutual labels:  terminal, library, table
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (-83.21%)
Mutual labels:  terminal, console, box
Python Progressbar
Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
Stars: ✭ 682 (-0.44%)
Mutual labels:  terminal, console, library
Finalcut
A text-based widget toolkit
Stars: ✭ 244 (-64.38%)
Mutual labels:  terminal, console, library
ctable
C library to print nicely formatted tables
Stars: ✭ 13 (-98.1%)
Mutual labels:  console, ascii, table
Libfort
C/C++ library to create formatted ASCII tables for console applications
Stars: ✭ 255 (-62.77%)
Mutual labels:  console, ascii, table
Zui
⬢ Zsh User Interface library – CGI+DHTML-like rapid application development with Zsh
Stars: ✭ 95 (-86.13%)
Mutual labels:  terminal, console, library
Tcharts.js
📉 Lightweight and fast terminal ASCII charts for nodejs and browser.
Stars: ✭ 172 (-74.89%)
Mutual labels:  terminal, console, ascii
Simpletable
Simple tables in terminal with Go
Stars: ✭ 288 (-57.96%)
Mutual labels:  terminal, ascii, table
Console
The Hoa\Console library.
Stars: ✭ 354 (-48.32%)
Mutual labels:  terminal, console, library
Lambdahack
Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at
Stars: ✭ 439 (-35.91%)
Mutual labels:  library, ascii
Ftxui
💻 C++ Functional Terminal User Interface. ❤️
Stars: ✭ 433 (-36.79%)
Mutual labels:  terminal, ascii
Pulsemixer
CLI and curses mixer for PulseAudio
Stars: ✭ 441 (-35.62%)
Mutual labels:  terminal, console
Buku
🔖 Personal mini-web in text
Stars: ✭ 4,825 (+604.38%)
Mutual labels:  terminal, console
Terminology
The best terminal emulator based on the Enlightenment Foundation Libraries
Stars: ✭ 440 (-35.77%)
Mutual labels:  terminal, console

============== terminaltables

Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.

  • Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5 supported on Linux and OS X.
  • Python 2.7, 3.3, 3.4, and 3.5 supported on Windows (both 32 and 64 bit versions of Python).

📖 Full documentation: https://robpol86.github.io/terminaltables

.. image:: https://img.shields.io/appveyor/ci/Robpol86/terminaltables/master.svg?style=flat-square&label=AppVeyor%20CI :target: https://ci.appveyor.com/project/Robpol86/terminaltables :alt: Build Status Windows

.. image:: https://img.shields.io/travis/Robpol86/terminaltables/master.svg?style=flat-square&label=Travis%20CI :target: https://travis-ci.org/Robpol86/terminaltables :alt: Build Status

.. image:: https://img.shields.io/codecov/c/github/Robpol86/terminaltables/master.svg?style=flat-square&label=Codecov :target: https://codecov.io/gh/Robpol86/terminaltables :alt: Coverage Status

.. image:: https://img.shields.io/pypi/v/terminaltables.svg?style=flat-square&label=Latest :target: https://pypi.python.org/pypi/terminaltables :alt: Latest Version

Quickstart

Install:

.. code:: bash

pip install terminaltables

Usage:

.. code::

from terminaltables import AsciiTable
table_data = [
    ['Heading1', 'Heading2'],
    ['row1 column1', 'row1 column2'],
    ['row2 column1', 'row2 column2'],
    ['row3 column1', 'row3 column2']
]
table = AsciiTable(table_data)
print table.table
+--------------+--------------+
| Heading1     | Heading2     |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+

Example Implementations

.. image:: docs/examples.png?raw=true :alt: Example Scripts Screenshot

Source code for examples: example1.py <https://github.com/Robpol86/terminaltables/blob/master/example1.py>, example2.py <https://github.com/Robpol86/terminaltables/blob/master/example2.py>, and example3.py <https://github.com/Robpol86/terminaltables/blob/master/example3.py>_

.. changelog-section-start

Changelog

This project adheres to Semantic Versioning <http://semver.org/>_.

3.1.0 - 2016-10-16

Added * git --porcelain-like table by liiight: https://github.com/Robpol86/terminaltables/pull/31

3.0.0 - 2016-05-30

Added * Support for https://pypi.python.org/pypi/colorama * Support for https://pypi.python.org/pypi/termcolor * Support for RTL characters (Arabic and Hebrew). * Support for non-string items in table_data like integers.

Changed * Refactored again, but this time entire project including tests.

Removed * padded_table_data property and join_row(). Moving away from repeated string joining/splitting.

Fixed * set_terminal_title() Unicode handling on Windows. * https://github.com/Robpol86/terminaltables/issues/18 * https://github.com/Robpol86/terminaltables/issues/20 * https://github.com/Robpol86/terminaltables/issues/23 * https://github.com/Robpol86/terminaltables/issues/26

2.1.0 - 2015-11-02

Added * GitHub Flavored Markdown table by bcho: https://github.com/Robpol86/terminaltables/pull/12 * Python 3.5 support (Linux/OS X and Windows).

2.0.0 - 2015-10-11

Changed * Refactored code. No new features. * Breaking changes: UnixTable/WindowsTable/WindowsTableDouble moved. Use SingleTable/DoubleTable instead.

1.2.1 - 2015-09-03

Fixed * CJK character width fixed by zqqf16 and bcho: https://github.com/Robpol86/terminaltables/pull/9

1.2.0 - 2015-05-31

Added * Bottom row separator.

1.1.1 - 2014-11-03

Fixed * Python 2.7 64-bit terminal width bug on Windows.

1.1.0 - 2014-11-02

Added * Windows support. * Double-lined table.

1.0.2 - 2014-09-18

Added * table_width and ok properties.

1.0.1 - 2014-09-12

Added * Terminal width/height defaults for testing. * terminaltables.DEFAULT_TERMINAL_WIDTH * terminaltables.DEFAULT_TERMINAL_HEIGHT

1.0.0 - 2014-09-11

  • Initial release.

.. changelog-section-end

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].