Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def print_template_attributes():
"""Display all the available template attributes in a tabular format
"""
table = MediaInfo.list_template_attributes()
tab = texttable.Texttable()
tab.set_cols_dtype(["t", "t", "t"])
rows = [[x["name"], x["description"], x["example"]] for x in table]
tab.add_rows(rows, header=False)
tab.header(["Attribute name", "Description", "Example"])
print(tab.draw())