Fast and flexible Pyhon library for text tables.
Library is also available as PHP package.
Table of contents
- Simple API, easy to use,
- Lightweight (no additional dependencies),
- Production ready.
Simples possible usage:
table = FlexTable(['ID', 'NAME', 'SCORE'])
table.add_rows({
[1, 'John', 12],
[2, 'Tommy', 15],
})
print(table.render())would produce nice text table:
┌────┬───────┬───────┐
│ ID │ NAME │ SCORE │
├────┼───────┼───────┤
│ 1 │ John │ 12 │
│ 2 │ Tommy │ 15 │
└────┴───────┴───────┘
See more usage examples.
- Written and copyrighted ©2023 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
- Text Table is open-sourced software licensed under the MIT license