larzascii
Numbers as readable text pictures.
Printing a list of numbers tells you little; a little bar chart tells you a lot. larzascii renders data as plain text - bar charts, histograms, sparklines, aligned tables, boxes and progress bars - to drop straight into a terminal, a log or a report. Works anywhere.
larzscript pkg install ascii
What you get
- bar_chart, histogram, sparkline
- Aligned bordered tables + boxes
- Progress bars
- Plain ASCII, works anywhere
Try it
import "ascii" as ascii
print(ascii.bar_chart({"food": 45, "housing": 120}, 20))
print(ascii.sparkline([1, 5, 3, 8, 2, 9]))
print(ascii.progress_bar(7, 10, 20))
print(ascii.box("Hello"))Output
food | ####### 45 housing | #################### 120 =:#.@ [##############------] 70% +-------+ | Hello | +-------+
Why it's in the Larz Stack
larzascii is a real Larzscript package (larzscript pkg install ascii) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.