Python3.11+ library to print tables and line charts in Terminal.
Project description
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
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outfancy-0.9.1.tar.gz.
File metadata
- Download URL: outfancy-0.9.1.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
141fd11eecffb94e6692b70f2d3e31290f8c9ffba13674ab5479f280f156e18a
|
|
| MD5 |
4a41e4d8b6bebc2a782eecd62cb490c7
|
|
| BLAKE2b-256 |
2d5b0fc8ae1ccbcd73e121f099b1f6253d9b3a7215b1a747591e4d31a78d2842
|
File details
Details for the file outfancy-0.9.1-py3-none-any.whl.
File metadata
- Download URL: outfancy-0.9.1-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1129047922bb9b9ec6b743449e160be81eda8750478f17e753b98ae4eec663a4
|
|
| MD5 |
4df8ae2e7833afa02d49a1c1bf462336
|
|
| BLAKE2b-256 |
d3cadd3ce99b4bebe20ef924f6c5f0590ea8d68ae4a0fbccdb7d2d359af916a1
|