

Anyway, it all comes from the fact that every color is RGB value rather than a system default. The blue is not messed up either as it would if using the default 34m ANSI escape sequence (if you don't know what that is it doesn't matter). I have tested and every single color works. Please note that printing colors might not work for you but it does works the exact same as the other libraries that print colored text. TableIt.printTable(myList, useFieldNames=True, color=(26, 156, 171)) Using the example from above: import TableIt You use colors by using the color option ( by default it is set to None) and specifying RGB values. TableIt.printTable(myList, useFieldNames=True)Īnd from that you get: +-+ There are other uses to, for example you could do this: import TableItįrom that: +-+ TableIt.printTable(table, useFieldNames=True)įrom that you will get: +-+ You can use field names if you want to ( if you aren't using field names you don't have to say useFieldNames=False because it is set to that by default): Then all you have to do is print it: TableIt.printTable(table) Then make a list of lists where each inner list is a row: table = [
TABULAR FORM DOWNLOAD
To use it, first follow the download instructions on the GitHub Page. It is extremely simple, that's why I think you should use it. I know that I am late to the party, but I just made a library for this that I think could really help.

asciitable Asciitable can read and write a wide range of ASCII table formats via built-in Extension Reader Classes.terminaltables Easily draw tables in terminal/console applications from a list of lists of strings.With texttable you can control horizontal/vertical align, border style and data types. texttable: from texttable import Texttable Also you are able to select subset of data, sort table and change table styles.ģ. PrettyTable has options to read data from csv, html, sql database. PrettyTable: from prettytable import PrettyTable print(tabulate(, ], headers=, tablefmt='orgtbl'))Ģ. Tabulate has many options to specify headers and table format. Anyway, it all comes from the fact that every color is RGB value rather than a system default.There are some light and useful python packages for this purpose:ġ.

I just made a library for this that I think could really help. NOTE: This answer is already posted on this question, and this question.
