def pprint_templates(templates):
    table = PTable(["id", "name", "disk type", "cpu", "ram", "hd",
        "disk file size"])
    for template in templates:
        row = [template.getId(), template.getName(),
                template.getDiskFormatType(), template.getCpuRequired(),
                str(template.getRamRequired()) + " MB",
                str(template.getHdRequired() / 1024 / 1024) + " MB",
                str(template.getDiskFileSize() / 1024 / 1024) + " MB"]
        table.add(row)
    table.pprint()
Pretty prints the given template list
dataset/ETHPy150Open nacx/kahuna/kahuna/utils/prettyprint.py/pprint_templates