https://github.com/carlosplanchon/outfancy
Python3 library to print tables in Terminal.
https://github.com/carlosplanchon/outfancy
ascii ascii-art ascii-graphics charts graphics outfancy python python3 table terminal terminal-based
Last synced: 5 months ago
JSON representation
Python3 library to print tables in Terminal.
- Host: GitHub
- URL: https://github.com/carlosplanchon/outfancy
- Owner: carlosplanchon
- License: mit
- Created: 2015-10-18T23:51:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2026-02-03T21:41:04.000Z (5 months ago)
- Last Synced: 2026-02-04T09:38:18.627Z (5 months ago)
- Topics: ascii, ascii-art, ascii-graphics, charts, graphics, outfancy, python, python3, table, terminal, terminal-based
- Language: Python
- Homepage:
- Size: 2.48 MB
- Stars: 53
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - outfancy - Python3 library to print tables in Terminal. (Python)
README
# outfancy
*Table printing and Line plotting in Terminal*

## what is it?
Outfancy is a Python 3.11+ library for printing tables in the terminal. It’s a quick way to visualize data when you don’t have a GUI, and it integrates easily into your programs. You can install it with pip and use it anywhere.
This was the first library I ever built—when I was 16 :). It’s been modernized to support modern Python versions, fix bugs, and improve performance, but the original style is still there: raw, exploratory teenage code.
## installation
### install with pip
```
pip install outfancy
```
## features
- Quick printing of tables.
- LineChart printing with linear interpolation.
- customize the separator used, width, priority of printing for each column.
- rearrange the columns in real time.
- Add labels above the table (can be autogenerated).
- Do Oneline printing, useful for real-time applications (report in screen function).
- Add colors to the field of the tables.
### DeepWiki Docs: [https://deepwiki.com/carlosplanchon/outfancy](https://deepwiki.com/carlosplanchon/outfancy)
## usage
### In the interpreter
# Table.
```
import outfancy.table
table = outfancy.table.Table()
dataset = [(1, 'Marie'), (2, 'Joseph')]
print(table.render(dataset))
```
# Chart.
```
import outfancy.chart
from math import sin
line_chart = outfancy.chart.LineChart()
dataset = [(i, sin(i)) for i in range(10)]
line_chart.plot(dataset)
print(line_chart.render(color=True))
```
## To do (Colaboration is welcome)
- Translate code to english. (Translated) (the translation need revision from a native english speaker (I speak spanish).
- Improve y_interpolation function on outfancy.chart.LineChart
Maybe add more kinds of charts on outfancy.chart.
Maybe on outfancy.table:
- Checking system on width parameter.
- Option to cancel the automatical checking of width parameter.
## Others
- https://gist.github.com/carlosplanchon/986c7c11a932a7206bb3 (Funny demo with colors)
## Experimental (Line Chart)
