Pretty-print tabular data in Python with multiple output formats
Pretty-print tabular data in Python
python-tabulate$ python -c "from tabulate import tabulate; print(tabulate([['Alice', 24], ['Bob', 19]], headers=['Name', 'Age']))"$ python -c "from tabulate import tabulate; data = [['Item1', 100], ['Item2', 200]]; print(tabulate(data, headers=['Product', 'Price'], tablefmt='grid'))"$ python -c "from tabulate import tabulate; print(tabulate([['user1', 'admin'], ['user2', 'guest']], headers=['Username', 'Role'], tablefmt='rst'))"