MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / pprint

Method pprint

aura/output/table.py:104–125  ·  view source on GitHub ↗
(self, preport=None)

Source from the content-addressed store, hash-verified

102 return d
103
104 def pprint(self, preport=None):
105 from .text import PrettyReport
106
107 if preport is None:
108 preport = PrettyReport()
109
110 preport.print_tables(self, self)
111
112 preport.print_top_separator()
113
114 if self.metadata.get("title"):
115 preport.print_heading(self.metadata["title"])
116
117 for row in self:
118 cols = []
119 for idx, col in enumerate(row):
120 text = preport._align_text(style(str(col), **col.style), width=self.col_len[idx])
121 cols.append(text)
122
123 preport.align(" \u2502 ".join(cols))
124
125 preport.print_bottom_separator()
126

Callers

nothing calls this directly

Calls 9

print_tablesMethod · 0.95
print_top_separatorMethod · 0.95
print_headingMethod · 0.95
_align_textMethod · 0.95
alignMethod · 0.95
PrettyReportClass · 0.85
getMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected