Skip to content

lethe3000/ctable

Repository files navigation

Basic info

Print colorful(256) tables for terminal with built-in themes:

  • dark
  • blue
  • red
  • green

Based on tabulate 0.7.7 or newer

requirement

    $ pip install colortable

usage

    from colortable import table

    row = [["Alice","F",24],["Bob","M",19],["Carlos","M",19]]
    header = ['name', 'male', 'age']

    for colorfmt in ['dark', 'green', 'red', 'blue']:
        print table(row, header, colorfmt=colorfmt)
        print

Output

Result

About

Print colorful(256) tables for terminal with built-in themes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages