MCPcopy
hub / github.com/Textualize/rich / render

Function render

tests/render.py:18–24  ·  view source on GitHub ↗
(renderable: RenderableType, no_wrap: bool = False)

Source from the content-addressed store, hash-verified

16
17
18def render(renderable: RenderableType, no_wrap: bool = False) -> str:
19 console = Console(
20 width=100, file=io.StringIO(), color_system="truecolor", legacy_windows=False
21 )
22 console.print(renderable, no_wrap=no_wrap)
23 output = replace_link_ids(console.file.getvalue())
24 return output

Callers 15

test_renderFunction · 0.90
test_variant_non_defaultFunction · 0.90
test_renderFunction · 0.90
test_zero_totalFunction · 0.90
test_pulseFunction · 0.90
test_bar.pyFile · 0.90
test_blank_linesFunction · 0.90
test_python_renderFunction · 0.90

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
replace_link_idsFunction · 0.70

Tested by 15

test_renderFunction · 0.72
test_variant_non_defaultFunction · 0.72
test_renderFunction · 0.72
test_zero_totalFunction · 0.72
test_pulseFunction · 0.72
test_blank_linesFunction · 0.72
test_python_renderFunction · 0.72