I have a dict
containing lists of strings and was wanting to print everything out as a table in the terminal in a format something like:
+----------------------------------------------+
| key1 | key2 | key3 | key4 |
+----------------------------------------------+
| val_1 | val_1 | val_1 | val_1 |
|----------|----------|-----------|------------|
| val_2 | val_2 | val_2 | val_2 |
+----------------------------------------------+
etc.
Is there an amazing module or a simple way of achieving this? I have a list of the column widths which I get by finding the longest val in each list.