tableformatter
tableformatter copied to clipboard
Tabular data formatter allowing printing from both arbitrary Iterables of Iterables or Iterables of objects via introspection
If text for a cell contains ANSI color or formatting codes that, after wrapping, spans a line break, the codes aren't copied over to each line of the cell.
Hi there, currently, it is advertised in the README to `import tableformatter as tf`. Fine, but since TensorFlow is by default imported as tf, maybe another nice abbreviation could be...
Add ability to specify color library when generating a specific table instead of having to modify a global variable every time.
Add a unit test that verifies that when colors are disabled no color escape characters show up. Need to check each grid style as well as row color decorator behavior.
# Proposed 0.2 architectural changes. - Distinct separation between phases of table generation (work in progress): - Detect input: Categorize input into known types (List of lists of strings, list...
Improve unit tests. Cover new features like dicts values. Try to improve testing of wrapping of unicode characters. See if there's a way to test colorization behavior with both the...
There isn't a way to specify the maximum width of a transposed table. The table-level max width isn't honored either.
Adding a row decorator that colorizes a row and then transposing the table causes the new row to still be decorated even though it is now what used to be...
When generating large tables the performance drops significantly. A large part of this is likely because tableformatter will seek through all of the fields of all of the rows multiple...
Competing modules such as [tabulate](https://github.com/gregbanks/python-tabulate) are smart about column alignment by default. ``tabulate`` detects columns which contain only numbers, and aligns them by a decimal point (or flushes them to...