Skip to content

xsddz/py_pkg_terminalprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminalprint

Quickstart

Install:

pip install terminalprint

Usage:

>>> table = [
...     ['Heading1', 'Heading2'],
...     ['row1 column1', 'row1 column2'],
...     ['row2 column1', 'row2 column2'],
...     ['row3 column1', 'row3 column2']
... ]
>>>
>>> import terminalprint as tp
>>> tp.table_print(table)
+--------------+--------------+
| Heading1     | Heading2     |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+
>>>

Example

docs/example-01.png

About

终端显示工具包

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages