Skip to main content

Simple Eyecandy ASCII Tables

Project description

>>> t = TextTable((5, 'abc'), (10, 'def'))
>>> t.row('foobarbaz', 'yadayadayada')
>>> print t.draw()

.-------+------------.
| abc   | def        |
+-------+------------+
| foob- | yadayaday- |
| arbaz | ada        |
'-------+------------'

Ported from Sebastian Riedel’s Text::SimpleTable[1] to Python. License is same as that of Text::SimpleTable - Artistic or GPL license.

[1]: http://search.cpan.org/~sri/Text-SimpleTable/lib/Text/SimpleTable.pm

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page