Files
tamigo-cli/venv/lib/python3.12/site-packages/rich/__pycache__/console.cpython-312.pyc

1001 lines
113 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<00><16>i<EFBFBD><69><00> <00>8<00>UddlZddlZddlZddlZddlZddlmZmZddlm Z m
Z
ddl m Z ddl m Z ddlmZddlmZddlmZdd lmZdd
lmZdd lmZdd lmZmZmZdd lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.ddl/m0Z0ddl1m2Z2m3Z3ddl4m4Z4ddl5m6Z6m7Z7ddl8m9Z9ddl:m;Z;m<Z<ddl=m>Z>m?Z?ddl@mAZAmBZBddlCmDZDddlEmFZFddlGmHZHmIZIddlJmKZLddlMmNZNmOZOddlPmQZQmRZRddlSmTZTmUZUddlVmWZWddlXmYZYdd lZm[Z[dd!l\m]Z]dd"l^m_Z_dd#l`maZambZbdd$lcmdZddd%lemfZfmgZgmhZhdd&limjZjmkZkdd'llmmZmmnZnerdd(lompZpdd)lqmrZrdd*lsmtZtd+Zud,Zvej<>d-k(Zxe e,eyd.fgd.fZze$d/Z{e$d0Z|Gd1<64>d2<64>Z}e}<7D>Z~ ej<><00>j<00>Z<> e<02>j<00>j<00>Z<> e<02>j
<00>j<00>Z<>e<EFBFBD>e<EFBFBD>e<EFBFBD>fZ<>e<EFBFBD>e<EFBFBD>fZ<>eA<65>jeA<65>jeA<65>jd4<64>Z<>Gd5<64>d6e&<26>Z<>e Gd7<64>d8<64><00>Z<>e.Gd9<64>d:e(<28><00>Z<>e.Gd;<3B>d<e(<28><00>Z<>e,e<>e<EFBFBD>eyfZ<> e"e,e<>e_fZ<>eH<65>Z<>Gd=<3D>d>e<><65>Z<>Gd?<3F>d@<40>Z<>GdA<64>dB<64>Z<>GdC<64>dD<64>Z<>GdE<64>dF<64>Z<>GdG<64>dH<64>Z<>GdI<64>dJ<64>Z<>GdK<64>dL<64>Z<>d}dNe<4E>dOe dPe dPe<50>fffdQ<64>Z<>dOe<4F>fdR<64>Z<>eA<65>jeA<65>jeA<65>j<eAj<41>dS<64>Z<>e<EFBFBD><65>jA<00>D<00><00>cic]\}}||<00><02>
c}}Z<>e GdT<64>dUe<03>jD<00><00>Z<>GdV<64>dWe<06>Z<>da<>e'dXe<>dY<d~dZ<64>Z<>dOe<4F>fd[<5B>Z<>Gd\<5C>d]<5D>Z<>d^eydOeyfd_<64>Z<>e<EFBFBD>d`k(rve<>dM<64>a<EFBFBD>Z<>e<EFBFBD><65>j[dbdcdddMdeddfdgdhdidj<64>dkdl<64><04>e<><65>j[dmdne<>e<EFBFBD><65><00>e<><65>j_dgdMdogdp<64>dqdr<64>ds<64>dedtgdu<64>dvdr<64>dwgdx<64>dydr<64>dz<64>d{<7B>d|<7C><03>yy#e<>$rdZ<>Y<00><02>QwxYw#e<>$rdZ<>Y<00><02>BwxYw#e<>$rd3Z<33>Y<00><02>3wxYwcc}}w)<>N)<02>ABC<42>abstractmethod)<02> dataclass<73>field)<01>datetime)<01>wraps)<01>getpass)<01>escape)<01>isclass)<01>islice)<01>ceil)<01> monotonic)<03> FrameType<70>
ModuleType<EFBFBD> TracebackType)<12>IO<49> TYPE_CHECKING<4E>Any<6E>Callable<6C>Dict<63>Iterable<6C>List<73>Literal<61>Mapping<6E>
NamedTuple<EFBFBD>Optional<61>Protocol<6F>TextIO<49>Tuple<6C>Type<70>Union<6F>cast<73>runtime_checkable)<01> NULL_FILE<4C>)<02>errors<72>themes)<01>_emoji_replace)<02>CONSOLE_HTML_FORMAT<41>CONSOLE_SVG_FORMAT)<01>
get_fileno)<02>FormatTimeCallable<6C> LogRender)<02>Align<67> AlignMethod)<02> ColorSystem<65> blend_rgb)<01>Control)<01> EmojiVariant)<02>NullHighlighter<65>ReprHighlighter<65><01>render)<02> Measurement<6E>measure_renderables)<02>Pager<65> SystemPager)<02>Pretty<74> is_expandable)<01> rich_cast)<01>Region)<01> render_scope)<01>Screen)<01>Segment)<02>Style<6C> StyleType)<01>Styled)<03>DEFAULT_TERMINAL_THEME<4D>SVG_EXPORT_THEME<4D> TerminalTheme)<02>Text<78>TextType)<02>Theme<6D>
ThemeStack)<01>WindowsConsoleFeatures)<01>Live<76><01>Status<75>s<00>d<00>win32rI)<05>default<6C>left<66>center<65>right<68>full)<04>fold<6C>crop<6F>ellipsis<69>ignorec<00> <00>eZdZy)<02>NoChangeN)<03>__name__<5F>
__module__<EFBFBD> __qualname__<5F><00><00>R/home/daniel/Projects/tamigo-cli/venv/lib/python3.12/site-packages/rich/console.pyr^r^Os<00><00>rcr^<00>)<03>kitty<74>256color<6F>16colorc<00>(<00>eZdZUdZeed< eed<y)<05>ConsoleDimensionszSize of the terminal.<2E>width<74>heightN)r_r`ra<00>__doc__<5F>int<6E>__annotations__rbrcrdrjrjms<00><00><1F> <0E>J<EFBFBD>.<2E> <0F>K<EFBFBD>-rcrjc<00><00>eZdZUdZeed< eed< eed< eed< eed< eed< eed< d Z e
e ed
< d Z e
e ed < d Ze
eed < d Ze
eed< d Ze
eed< d Ze
eed<edefd<12><04>Zdd<13>Zeeeeeeeeed<14> deeefdeeefdeeefd
ee
e efd ee
e efd ee
eefdee
eefdee
eefdee
eefddfd<16>Zdeddfd<17>Zdeddfd<18>Zdd<19>Zdededdfd<1A>Zy )<1C>ConsoleOptionsz$Options for __rich_console__ method.<2E>size<7A>legacy_windows<77> min_width<74> max_width<74> is_terminal<61>encoding<6E>
max_heightN<EFBFBD>justify<66>overflowF<77>no_wrap<61> highlight<68>markuprl<00>returnc<00>:<00>|jjd<01> S)z+Check if renderables should use ascii only.<2E>utf)rw<00>
startswith<EFBFBD><01>selfs rd<00>
ascii_onlyzConsoleOptions.ascii_only<6C>s<00><00><18>=<3D>=<3D>+<2B>+<2B>E<EFBFBD>2<>2<>2rcc<00>v<00>tjt<00>}|jj<00>|_|S)zdReturn a copy of the options.
Returns:
ConsoleOptions: a copy of self.
)rq<00>__new__<5F>__dict__<5F>copy<70>r<><00>optionss rdr<>zConsoleOptions.copy<70>s.<00><00> #1<>"8<>"8<><1E>"H<><07><1F>=<3D>=<3D>-<2D>-<2D>/<2F><07><18><16>rc) rkrtruryrzr{r|r}rlrkc <00><00>|j<00>}
t|t<00>std|<01>x|
_|
_t|t<00>s||
_t|t<00>s||
_t|t<00>s||
_t|t<00>s||
_t|t<00>s||
_t|t<00>s||
_ t|t<00>s||
_
t| t<00>s| <09>| |
_ | <09>dn td| <09>|
_ |
S)zUpdate values, return a copy.rN) r<><00>
isinstancer^<00>maxrtruryrzr{r|r}rxrl) r<>rkrtruryrzr{r|r}rlr<>s rd<00>updatezConsoleOptions.update<74>s<><00><00><17>)<29>)<29>+<2B><07><19>%<25><18>*<2A>47<34><01>5<EFBFBD>M<EFBFBD> A<>G<EFBFBD> <1D><07> 1<><19>)<29>X<EFBFBD>.<2E> )<29>G<EFBFBD> <1D><19>)<29>X<EFBFBD>.<2E> )<29>G<EFBFBD> <1D><19>'<27>8<EFBFBD>,<2C>%<25>G<EFBFBD>O<EFBFBD><19>(<28>H<EFBFBD>-<2D>'<27>G<EFBFBD> <1C><19>'<27>8<EFBFBD>,<2C>%<25>G<EFBFBD>O<EFBFBD><19>)<29>X<EFBFBD>.<2E> )<29>G<EFBFBD> <1D><19>&<26>(<28>+<2B>#<23>G<EFBFBD>N<EFBFBD><19>&<26>(<28>+<2B><15>!<21>%+<2B><07>"<22>%+<2B>^<5E>T<EFBFBD><13>Q<EFBFBD><06><1E>G<EFBFBD>N<EFBFBD><16>rcc<00>V<00>|j<00>}td|<01>x|_|_|S)z<>Update just the width, return a copy.
Args:
width (int): New width (sets both min_width and max_width)
Returns:
~ConsoleOptions: New console options instance.
r)r<>r<>rtru)r<>rkr<>s rd<00> update_widthzConsoleOptions.update_width<74>s*<00><00><17>)<29>)<29>+<2B><07>03<30>A<EFBFBD>u<EFBFBD> <0A>=<3D><07><19>G<EFBFBD>-<2D><16>rcc<00>B<00>|j<00>}|x|_|_|S)z<>Update the height, and return a copy.
Args:
height (int): New height
Returns:
~ConsoleOptions: New Console options instance.
)r<>rxrl)r<>rlr<>s rd<00> update_heightzConsoleOptions.update_height<68>s#<00><00><17>)<29>)<29>+<2B><07>.4<EFBFBD>4<><07><1A>W<EFBFBD>^<5E><16>rcc<00>4<00>|j<00>}d|_|S)z<>Return a copy of the options with height set to ``None``.
Returns:
~ConsoleOptions: New console options instance.
N)r<>rlr<>s rd<00> reset_heightzConsoleOptions.reset_height<68>s<00><00> <17>)<29>)<29>+<2B><07><1D><07><0E><16>rcc<00>r<00>|j<00>}td|<01>x|_|_|x|_|_|S)aUpdate the width and height, and return a copy.
Args:
width (int): New width (sets both min_width and max_width).
height (int): New height.
Returns:
~ConsoleOptions: New console options instance.
r)r<>r<>rtrurlrx)r<>rkrlr<>s rd<00>update_dimensionsz ConsoleOptions.update_dimensions<6E>s9<00><00><17>)<29>)<29>+<2B><07>03<30>A<EFBFBD>u<EFBFBD> <0A>=<3D><07><19>G<EFBFBD>-<2D>.4<EFBFBD>4<><07><0E><17>+<2B><16>rc)r~rq)r_r`rarmrjro<00>boolrn<00>strryr<00> JustifyMethodrz<00>OverflowMethodr{r|r}rl<00>propertyr<79>r<><00> NO_CHANGEr!r^r<>r<>r<>r<>r<>rbrcrdrqrqvs<00><00>.<2E>
<1B><1B><1A><18><18>2<><12>N<EFBFBD>&<26><12>N<EFBFBD>&<26><15><15><<3C><11>M<EFBFBD><1F><13>O<EFBFBD>2<>'+<2B>G<EFBFBD>X<EFBFBD>m<EFBFBD> $<24>+<2B>0<>)-<2D>H<EFBFBD>h<EFBFBD>~<7E>&<26>-<2D>1<>#<23>G<EFBFBD>X<EFBFBD>d<EFBFBD>^<5E>#<23>$<24> $<24>I<EFBFBD>x<EFBFBD><04>~<7E>$<24>,<2C>!<21>F<EFBFBD>H<EFBFBD>T<EFBFBD>N<EFBFBD>!<21>/<2F> <20>F<EFBFBD>H<EFBFBD>S<EFBFBD>M<EFBFBD> <20> <0A>3<>D<EFBFBD>3<><0E>3<><17>'0<>*3<>*3<><E<>>G<>3<<3C>5><3E>2;<3B>1:<3A>#<17><15>S<EFBFBD>(<28>]<5D>#<23>#<17><19><13>h<EFBFBD><1D>'<27> #<17>
<19><13>h<EFBFBD><1D>'<27> #<17> <17>x<EFBFBD> <0A>.<2E><08>8<>9<> #<17><18><08><1E>0<>(<28>:<3A>;<3B>#<17><17>x<EFBFBD><04>~<7E>x<EFBFBD>/<2F>0<>#<17><19><18>$<24><1E><18>1<>2<>#<17><16>h<EFBFBD>t<EFBFBD>n<EFBFBD>h<EFBFBD>.<2E>/<2F>#<17><16>h<EFBFBD>s<EFBFBD>m<EFBFBD>X<EFBFBD>-<2D>.<2E>#<17>
<1A>#<17>J <17>#<23> <17>*:<3A> <17> <17>C<EFBFBD> <17>,<<3C> <17><17> <17>s<EFBFBD> <17>C<EFBFBD> <17><L<> rcrqc<00>(<00>eZdZdZdeddeffd<04>Zy)<06>RichCastz5An object that may be 'cast' to a console renderable.r~<00>ConsoleRenderablec<00><00>y<00>Nrbr<>s rd<00>__rich__zRichCast.__rich__<00><00><00> rcN)r_r`rarmr!r<>r<>rbrcrdr<>r<><00>s<00><00>?<3F> <0C> <0E>"<22>J<EFBFBD><03>3<> 4<> rcr<>c<00>$<00>eZdZdZ dd<02>Zy)r<>z-An object that supports the console protocol.c<00><00>yr<>rb<00>r<><00>consoler<65>s rd<00>__rich_console__z"ConsoleRenderable.__rich_console__
r<>rcN)r<><00>Consoler<65>rqr~<00> RenderResult)r_r`rarmr<>rbrcrdr<>r<>s"<00><00>7<> <0C> <20> <0C>+;<3B> <0C> <17> rcr<>c<00><00>eZdZdZy)<03> CaptureErrorz(An error in the Capture context manager.N)r_r`rarmrbrcrdr<>r<>s<00><00>2rcr<>c<00><<00>eZdZdZd deddfd<05>Zdddd deefd
<EFBFBD>Zy) <0C>NewLinez$A renderable to generate new line(s)<29>countr~Nc<00><00>||_yr<>)r<><00>r<>r<>s rd<00>__init__zNewLine.__init__!s <00><00><1A><04>
rcr<>r<>r<>rqc#<00>@K<00>td|jz<00><00><01>y<00>w)N<>
)rBr<>r<>s rdr<>zNewLine.__rich_console__$s<00><00><><00><16>d<EFBFBD>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>'<27>(<28>(<28>s<00><01>r%) r_r`rarmrnr<>rrBr<>rbrcrdr<>r<>s:<00><00>.<2E><1B>c<EFBFBD><1B>$<24><1B>)<29> <20>)<29>+;<3B>)<29> <11>'<27> <1A>)rcr<>c<00>H<00>eZdZdZdeeedededdfd<07>Zdd d
ede fd <0B>Z
y) <0C> ScreenUpdatez)Render a list of lines at a given offset.<2E>lines<65>x<>yr~Nc<00>.<00>||_||_||_yr<>)<03>_linesr<73>r<>)r<>r<>r<>r<>s rdr<>zScreenUpdate.__init__-s<00><00><1B><04> <0B><12><04><06><12><04>rcr<>r<>r<>c#<00><>K<00>|j}tj}t|j|j
<00>D]\}}|||<05><00><01>|Ed{<00><02><02><00>y7<00><07>wr<>)r<>r2<00>move_to<74> enumerater<65>r<>)r<>r<>r<>r<>r<><00>offset<65>lines rdr<>zScreenUpdate.__rich_console__2sS<00><00><><00> <11>F<EFBFBD>F<EFBFBD><01><19>/<2F>/<2F><07>%<25>d<EFBFBD>k<EFBFBD>k<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>:<3A> <1C>L<EFBFBD>F<EFBFBD>D<EFBFBD><19>!<21>V<EFBFBD>$<24> $<24><1B>O<EFBFBD>O<EFBFBD> <1C> <1B>s<00>AA<01>A<06>A) r_r`rarmrrBrnr<>rqr<>r<>rbrcrdr<>r<>*sL<00><00>3<><13>d<EFBFBD>4<EFBFBD><07>=<3D>1<><13>c<EFBFBD><13>c<EFBFBD><13>d<EFBFBD><13>
<1C> <20><1C>+9<><1C> <15>rcr<>c<00>\<00>eZdZdZd d<04>Zd d<05>Zdeeedeedee ddfd <09>Z
de fd
<EFBFBD>Z y) <0A>Capturez<65>Context manager to capture the result of printing to the console.
See :meth:`~rich.console.Console.capture` for how to use.
Args:
console (Console): A console instance to capture output.
r~Nc<00> <00>||_d|_yr<>)<02>_console<6C>_result)r<>r<>s rdr<>zCapture.__init__Ds<00><00><1F><04> <0A>&*<2A><04> rcc<00>:<00>|jj<00>|Sr<>)r<><00> begin_capturer<65>s rd<00> __enter__zCapture.__enter__H<00><00><00> <0C> <0A> <0A>#<23>#<23>%<25><13> rc<00>exc_type<70>exc_val<61>exc_tbc<00>B<00>|jj<00>|_yr<>)r<><00> end_capturer<65><00>r<>r<>r<>r<>s rd<00>__exit__zCapture.__exit__Ls<00><00> <1C>}<7D>}<7D>0<>0<>2<><04> rcc<00>H<00>|j<00> td<01><00>|jS)zGet the result of the capture.z<Capture result is not available until context manager exits.)r<>r<>r<>s rd<00>getz Capture.getTs(<00><00> <0F><<3C><<3C> <1F><1E>N<><0E> <0E><14>|<7C>|<7C>rc)r<>r<>r~N)r~r<>) r_r`rarmr<>r<>rr <00> BaseExceptionrr<>r<>r<>rbrcrdr<>r<><s\<00><00><08>+<2B><14>3<><1A>4<EFBFBD> <0A>.<2E>/<2F>3<><1A>-<2D>(<28>3<><19><1D>'<27> 3<>
<0E> 3<><1C>S<EFBFBD>rcr<>c <00>b<00>eZdZdZddddededdfd<08>Zdd <09>Zd
ee e
d ee
d ee ddfd <0A>Z y)<10> ThemeContextzbA context manager to use a temporary theme. See :meth:`~rich.console.Console.use_theme` for usage.r<>r<><00>theme<6D>inheritr~Nc<00>.<00>||_||_||_yr<>)r<>r<>r<>)r<>r<>r<>r<>s rdr<>zThemeContext.__init__`s<00><00><1E><04> <0C><1A><04>
<EFBFBD><1E><04> rcc<00>P<00>|jj|j<00>|Sr<>)r<><00>
push_themer<EFBFBD>r<>s rdr<>zThemeContext.__enter__es<00><00> <0C> <0C> <0C><1F><1F><04>
<EFBFBD>
<EFBFBD>+<2B><13> rcr<>r<>r<>c<00>8<00>|jj<00>yr<>)r<><00> pop_themer<65>s rdr<>zThemeContext.__exit__is<00><00> <0A> <0C> <0C><1E><1E> rc<00>T)r~r<>) r_r`rarmrKr<>r<>r<>rr r<>rr<>rbrcrdr<>r<>]sk<00><00>l<><1F> <09><1F>%<25><1F>$<24><1F>RV<52><1F>
<14>!<21><1A>4<EFBFBD> <0A>.<2E>/<2F>!<21><1A>-<2D>(<28>!<21><19><1D>'<27> !<21>
<0E> !rcr<>c <00>r<00>eZdZdZ ddddeedededdf
d <09>Zdd
<EFBFBD>Zd ee e
d ee
d ee ddfd<0E>Z y)<11> PagerContextzZA context manager that 'pages' content. See :meth:`~rich.console.Console.pager` for usage.Nr<4E>r<><00>pager<65>styles<65>linksr~c<00>T<00>||_|<02>
t<00>n||_||_||_yr<>)r<>r;r<>r<>r<>)r<>r<>r<>r<>r<>s rdr<>zPagerContext.__init__us(<00><00> <20><04> <0A>&+<2B>m<EFBFBD>[<5B>]<5D><15><04>
<EFBFBD><1C><04> <0B><1A><04>
rcc<00>:<00>|jj<00>|Sr<>)r<><00> _enter_bufferr<72>s rdr<>zPagerContext.__enter__<5F>r<>rcr<>r<>r<>c<00><><00>|<01><>|jj5|jjdd}|jjdd<00>=|}|jst j
|<05>}n!|j st j|<05>}|jj|<05>}ddd<00>|jj<06>|jj<00>y#1swY<00>?xYwr<>) r<><00>_lock<63>_bufferr<72>rB<00> strip_stylesr<73><00> strip_links<6B>_render_bufferr<72><00>show<6F> _exit_buffer)r<>r<>r<>r<><00>buffer<65>segments<74>contents rdr<>zPagerContext.__exit__<5F>s<><00><00> <14> <1B><15><1D><1D>$<24>$<24> A<01>(,<2C> <0A> <0A>(=<3D>(=<3D>a<EFBFBD>(@<40><06><18>M<EFBFBD>M<EFBFBD>)<29>)<29>!<21>,<2C>.4<EFBFBD><08><1B>{<7B>{<7B>&<26>3<>3<>H<EFBFBD>=<3D>H<EFBFBD><1D><1A><1A>&<26>2<>2<>8<EFBFBD><<3C>H<EFBFBD><1E>-<2D>-<2D>6<>6<>x<EFBFBD>@<40><07> A<01> <11>J<EFBFBD>J<EFBFBD>O<EFBFBD>O<EFBFBD>G<EFBFBD> $<24> <0C> <0A> <0A>"<22>"<22>$<24> A<01> A<01>s <00>BC*<03>*C3<07>NFF)r~r<>) r_r`rarmrr:r<>r<>r<>r r<>rr<>rbrcrdr<>r<>rs<><00><00>d<>
"&<26><1C><1B>
<1B><1A>
<1B><18><05><EFBFBD>
<1B><15>
<1B>
<14>
<1B>
<0E>
<1B><14>%<25><1A>4<EFBFBD> <0A>.<2E>/<2F>%<25><1A>-<2D>(<28>%<25><19><1D>'<27> %<25>
<0E> %rcr<>c <00><><00>eZdZdZ ddddededdfd<08>Zdd <09>d
edeeddfd <0B>Z dd <0C>Z
d ee e dee dee ddfd<10>Zy)<13> ScreenContextziA context manager that enables an alternative screen. See :meth:`~rich.console.Console.screen` for usage.r<>r<><00> hide_cursor<6F>styler~Nc<00>P<00>||_||_t|<03><01>|_d|_y)N<>r<>F)r<>r<>rA<00>screen<65>_changed)r<>r<>r<>r<>s rdr<>zScreenContext.__init__<5F>s&<00><00><1F><04> <0C>&<26><04><18><1C>5<EFBFBD>)<29><04> <0B><1D><04> rcr<><00> renderablesc<00><><00>|r*t|<02>dkDrt|<02>n|d|j_|<01>||j_|j
j |jd<04><05>y)a+Update the screen.
Args:
renderable (RenderableType, optional): Optional renderable to replace current renderable,
or None for no change. Defaults to None.
style: (Style, optional): Replacement style, or None for no change. Defaults to None.
r%rN<>)<01>end)<07>len<65>Groupr<70><00>
renderabler<EFBFBD>r<><00>print)r<>r<>r<>s rdr<>zScreenContext.update<74>s\<00><00> <17>'*<2A>;<3B>'7<>!<21>';<3B><05>{<7B>#<23><1B>Q<EFBFBD><1E> <11>K<EFBFBD>K<EFBFBD> "<22> <11> <1C> %<25>D<EFBFBD>K<EFBFBD>K<EFBFBD> <1D> <0C> <0C> <0C><1A><1A>4<EFBFBD>;<3B>;<3B>B<EFBFBD><1A>/rcc<00><><00>|jjd<01>|_|jr'|jr|jj d<02>|S)NTF)r<><00>set_alt_screenr<6E>r<><00> show_cursorr<72>s rdr<>zScreenContext.__enter__<5F>s><00><00><1C> <0C> <0C>3<>3<>D<EFBFBD>9<><04> <0A> <0F>=<3D>=<3D>T<EFBFBD>-<2D>-<2D> <10>L<EFBFBD>L<EFBFBD> $<24> $<24>U<EFBFBD> +<2B><13> rcr<>r<>r<>c<00><><00>|jrD|jjd<01>|jr|jj d<02>yyy)NFT)r<>r<>rr<>rr<>s rdr<>zScreenContext.__exit__<5F>sB<00><00> <10>=<3D>=<3D> <10>L<EFBFBD>L<EFBFBD> '<27> '<27><05> .<2E><13><1F><1F><14> <0C> <0C>(<28>(<28><14>.<2E> <20> rc<00>r<>)r~r<>)r_r`rarmr<>rDr<><00>RenderableTyperr<>r<>r r<>rr<>rbrcrdr<>r<><00>s<><00><00>s<>IK<01><1E> <20><1E>/3<><1E><E<><1E> <0A><1E>JN<01>0<>*<2A>0<>3;<3B>I<EFBFBD>3F<33>0<> <0A>0<>$<14> /<2F><1A>4<EFBFBD> <0A>.<2E>/<2F> /<2F><1A>-<2D>(<28> /<2F><19><1D>'<27> /<2F>
<0E> /rcr<>c<00>n<00>eZdZdZdd<03>dddeddfd <09>Zededfd
<EFBFBD><04>Z dd<0F>Z d d d dde
fd<10>Z y)ra$Takes a group of renderables and returns a renderable object that renders the group.
Args:
renderables (Iterable[RenderableType]): An iterable of renderable objects.
fit (bool, optional): Fit dimension of group to contents, or fill available space. Defaults to True.
T)<01>fitr<74>rr
r~Nc<00>.<00>||_||_d|_yr<>)<03> _renderablesr
<00>_render)r<>r
r<>s rdr<>zGroup.__init__<5F>s<00><00>'<27><04><19><16><04><08>7;<3B><04> rcc<00>f<00>|j<00>t|j<00>|_|jSr<>)r <00>listr r<>s rdr<>zGroup.renderables<65>s(<00><00> <0F><<3C><<3C> <1F><1F><04> 1<> 1<>2<>D<EFBFBD>L<EFBFBD><13>|<7C>|<7C>rcr<>r<>r<>rqc<00><><00>|jrt|||j<00>St|j|j<00>Sr<>)r
r9r<>r8rur<>s rd<00>__rich_measure__zGroup.__rich_measure__<5F>s9<00><00> <10>8<EFBFBD>8<EFBFBD>&<26>w<EFBFBD><07><14>9I<39>9I<39>J<> J<><1E>w<EFBFBD>0<>0<>'<27>2C<32>2C<32>D<> Drcc#<00>8K<00>|jEd{<00><02><02>y7<00><05>wr<>)r<>r<>s rdr<>zGroup.__rich_console__<5F>s<00><00><><00><18>#<23>#<23>#<23>#<23>s <00><01><04>)r<>r<>r<>rqr~r8) r_r`rarmr<>r<>r<>rr<>rr<>r<>rbrcrdrr<00>s<><00><00><08>DH<01><<3C>%5<><<3C>D<EFBFBD><<3C>D<EFBFBD><<3C>
<0E><1C>T<EFBFBD>"2<>3<><1C><0E><1C>
E<01> <20>E<01>+;<3B>E<01> <16>E<01>$<24> <20>$<24>+;<3B>$<24> <15>$rcrTr
r~.c<00>^<00><00>dtdttfdtdtff<04>fd<04> }|S)z<>A decorator that turns an iterable of renderables in to a group.
Args:
fit (bool, optional): Fit dimension of group to contents, or fill available space. Defaults to True.
<20>method.r~c<00>X<00><01><00>t<00><00>dtdtdtf<06><02>fd<04> <0C>}|S)zGConvert a method that returns an iterable of renderables in to a Group.<2E>args<67>kwargsr~c<00>*<00><02><00>|i|<01><01>}t|d<01>i<01>S)Nr
)r)rrr<>r
rs <20><>rd<00>_replacez*group.<locals>.decorator.<locals>._replace<63>s"<00><><00> <20>$<24>1<>&<26>1<>K<EFBFBD><18>+<2B>/<2F>3<EFBFBD>/<2F> /rc)rrr)rrr
s` <20>rd<00> decoratorzgroup.<locals>.decorator<6F>s7<00><><00>
<0F>v<EFBFBD><1D> 0<>C<EFBFBD> 0<>3<EFBFBD> 0<>5<EFBFBD> 0<>
<17> 0<><18>rc)rrrr)r
rs` rd<00>groupr<00>s8<00><><00>
<18><18><13>h<EFBFBD>~<7E>6<>6<>7<>
<18> <11>#<23>u<EFBFBD>*<2A> <1D>
<18> <15>rcc<00><><00> tt<00>}|jj}dt |j<00>vst j d<03>s|dk(ry|dk(ryy#t$rYywxYw)z-Check if we're running in a Jupyter notebook.Fz google.colab<61>DATABRICKS_RUNTIME_VERSION<4F>ZMQInteractiveShellT<6C>TerminalInteractiveShell)<07> get_ipython<6F> NameError<6F> __class__r_r<><00>os<6F>getenv)<02>ipython<6F>shells rd<00> _is_jupyterr'<00>ss<00><00><15><13><1A>m<EFBFBD>G<EFBFBD> <13> <1D> <1D> &<26> &<26>E<EFBFBD><16>#<23>g<EFBFBD>/<2F>/<2F>0<>0<> <0A>9<EFBFBD>9<EFBFBD>1<> 2<> <10>)<29> )<29><13> <0E>,<2C> ,<2C><14><14><> <15><15><14><15>s<00>A!<00>! A-<03>,A-)<04>standard<72>256<35> truecolor<6F>windowsc<00>L<00>eZdZUdZeed<ee<07><03>Ze e
ed<dZ e ed<y)<08>ConsoleThreadLocalsz(Thread local values for Console context.<2E> theme_stack)<01>default_factoryr<79>r<00> buffer_indexN) r_r`rarmrLrorrr<>rrBr0rnrbrcrdr-r-s(<00><00>2<><1B><1B>!<21>$<24>7<>F<EFBFBD>D<EFBFBD><17>M<EFBFBD>7<><19>L<EFBFBD>#<23>rcr-c<00>6<00>eZdZdZedeedeefd<04><04>Zy)<06>
RenderHookz(Provides hooks in to the render process.r<>r~c<00><00>y)aLCalled with a list of objects to render.
This method can return a new list of renderables, or modify and return the same list.
Args:
renderables (List[ConsoleRenderable]): A number of renderable objects.
Returns:
List[ConsoleRenderable]: A replacement list of renderables.
Nrb)r<>r<>s rd<00>process_renderableszRenderHook.process_renderables)s<00>rcN)r_r`rarmrrr<>r4rbrcrdr2r2&s3<00><00>2<><13>  <0C><1F> 1<>2<>  <0C> <0A><1F> <20>  <0C><14>  rcr2rM<00>_windows_console_featuresc<00>@<00>t<00>tSddlm}|<00>atS)Nr%<00><01>get_windows_console_features)r5<00>_windowsr8r7s rdr8r8<s <00><00> <20>,<2C>(<28>(<28>6<> <<3C> ><3E><1D> $<24>$rcc<00><<00>txrt<00>j S)zDetect legacy Windows.)<03>WINDOWSr8<00>vtrbrcrd<00>detect_legacy_windowsr=Fs<00><00> <12> <<3C>7<>9<><<3C><<3C><<3C><rcc<<00><> <00>eZdZUdZej
Zeeefe d<dddddddddddddddddddddde
<EFBFBD>dddddd <09>d
e e d d e e d e e de e de de ede de eede de ede ede ede e dede de de de ede de de d eeefd!e d"d#e e d$e d%e egefd&e egefde eeeff8d'<27>Zd(efd)<29>Zed(eefd*<2A><04>Zej8d+eed(dfd,<2C><04>Zed(eefd-<2D><04>Zed(efd.<2E><04>Z e j8d/ed(dfd0<64><04>Z ed(e!fd1<64><04>Z"d(e e#fd2<64>Z$d<>d3<64>Z%d<>d4<64>Z&d5d6d(e fd7<64>Z'd<>d8<64>Z(d9e)d(dfd:<3A>Z*d<>d;<3B>Z+d<>d<<3C>Z,d=e-d>e-d?e-d(dfd@<40>Z.d<>dA<64>Z/d(efdB<64>Z0ddC<64>dedDe d(dfdE<64>Z1d<31>dF<64>Z2ddC<64>dedDe d(e3fdG<64>Z4ed(e efdH<64><04>Z5ed(efdI<64><04>Z6ed(e fdJ<64><04>Z7ed(e fdK<64><04>Z8ed(e9fdL<64><04>Z:ed(e;fdM<64><04>Z<e<j8dNe=eefd(dfdO<64><04>Z<ed(efdP<64><04>Z>e>j8ded(dfdQ<64><04>Z>ed(efdR<64><04>Z?e?j8ded(dfdS<64><04>Z?d<>dT<64>Z@d(eAfdU<64>ZB d<>dVe eCdWe dXe d(eDfdY<64>ZEd<45>d[ed(dfd\<5C>ZFd<46>d]e d(dfd^<5E>ZGd_d`dadbdc<64>ddeHdeedfedgedhed(dif dj<64>ZId<49>dke d(e fdl<64>ZJd<4A>dme d(e fdn<64>ZKed(e fdo<64><04>ZLdped(e fdq<64>ZM d<>dre de ed(dsfdt<64>ZNddu<64>dveHdwe e9d(eOfdx<64>ZP d<>dveHdwe e9d(eQefdy<64>ZR d<>ddddz<64>dveHdwe e9de eSd{e d|e d(eeef d}<7D>ZTd~ddddddd<64>d<>edeeeSfd<>e eUd<>e eVde e de e de e d!e eWd(d<>fd<><64>ZXdd<><64>d<>eeeSfd<>e eeSefd(eSfd<><64>ZYddddd<><64>d<>eQe-d<>ed<>ed<>e eUde e de e de e d(eeZfd<><64>Z[ d<>d<EFBFBD>d<EFBFBD>d<EFBFBD>d<EFBFBD><64>dpe\d<>edeeeSfd<>e]d(df
d<EFBFBD><EFBFBD>Z^d<>e_d(dfd<><64>Z`d<>d<EFBFBD>ddd<><64>d<>e-d<>ed<>ede eeeSfde e d(df d<><64>Zad<61>d<EFBFBD>ddddddddddddd<><64>d<>e-d<>ed<>ede eeeSfd<>e eUd<>e eVd<>e e de e de e de e de ede ed<>e de e d<>e d(df d<><64>Zb d<>dd<>dddddddd<><64> d<>e ed<>e-d<>edeefde d<>e d<>e d<>e d<>e d<>e ee-ge-fd<>e d(dfd<><64>Zcddd<><64>dveHd<48>e eddwe e9d(dfd<><64>Ze d<>d<EFBFBD>eeed<>ed<>ed(dfd<><64>Zfd<66>d<EFBFBD>dddd<>d<EFBFBD>d<EFBFBD><64>de ed<>ede ed<>e d<>e d<>eQeeegfd<>ed(dfd<><64>Zheiejj<6A>fd<>ed<>ege elfd(e=eeemee-fffd<><64><05>Znd<6E>d<EFBFBD>dddddddZd<5A><64> d<>e-d<>ed<>ede eeeSfd<>e eUde e de e de e d<>e d<>ed(dfd„Zod<6F>Zpd<70>Zqd<71>Zrd<72>eQed(efZs d<>dddddȜd<>e\de de d<>e d<>e etd(ef Zuddd<>e dWe d(efZvddd<>ed<>e dWe d(dfZwddddde exd<>e d<>e ed<>e d(ef
Zyddezdd<>ede exd<>e d<>ed<>e d(df dքZ{d<>dde|d<>ddpede exd<>e d<>ed<>ed<>e ed(efd܄Z}d<>dde|d<>dd<>edpede exd<>e d<>ed<>ed<>e ed(dfZ~y)<29>r<EFBFBD>ar A high level console interface.
Args:
color_system (str, optional): The color system supported by your terminal,
either ``"standard"``, ``"256"`` or ``"truecolor"``. Leave as ``"auto"`` to autodetect.
force_terminal (Optional[bool], optional): Enable/disable terminal control codes, or None to auto-detect terminal. Defaults to None.
force_jupyter (Optional[bool], optional): Enable/disable Jupyter rendering, or None to auto-detect Jupyter. Defaults to None.
force_interactive (Optional[bool], optional): Enable/disable interactive mode, or None to auto detect. Defaults to None.
soft_wrap (Optional[bool], optional): Set soft wrap default on print method. Defaults to False.
theme (Theme, optional): An optional style theme object, or ``None`` for default theme.
stderr (bool, optional): Use stderr rather than stdout if ``file`` is not specified. Defaults to False.
file (IO, optional): A file object where the console should write to. Defaults to stdout.
quiet (bool, Optional): Boolean to suppress all output. Defaults to False.
width (int, optional): The width of the terminal. Leave as default to auto-detect width.
height (int, optional): The height of the terminal. Leave as default to auto-detect height.
style (StyleType, optional): Style to apply to all output, or None for no style. Defaults to None.
no_color (Optional[bool], optional): Enabled no color mode, or None to auto detect. Defaults to None.
tab_size (int, optional): Number of spaces used to replace a tab character. Defaults to 8.
record (bool, optional): Boolean to enable recording of terminal output,
required to call :meth:`export_html`, :meth:`export_svg`, and :meth:`export_text`. Defaults to False.
markup (bool, optional): Boolean to enable :ref:`console_markup`. Defaults to True.
emoji (bool, optional): Enable emoji code. Defaults to True.
emoji_variant (str, optional): Optional emoji variant, either "text" or "emoji". Defaults to None.
highlight (bool, optional): Enable automatic highlighting. Defaults to True.
log_time (bool, optional): Boolean to enable logging of time by :meth:`log` methods. Defaults to True.
log_path (bool, optional): Boolean to enable the logging of the caller by :meth:`log`. Defaults to True.
log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to "[%X] ".
highlighter (HighlighterType, optional): Default highlighter.
legacy_windows (bool, optional): Enable legacy Windows mode, or ``None`` to auto detect. Defaults to ``None``.
safe_box (bool, optional): Restrict box options that don't render on legacy Windows.
get_datetime (Callable[[], datetime], optional): Callable that gets the current time as a datetime.datetime object (used by Console.log),
or None for datetime.now.
get_time (Callable[[], time], optional): Callable that gets the current time in seconds, default uses time.monotonic.
<20>_environ<6F>autoNF<4E>Tz[%X])<1C> color_system<65>force_terminal<61> force_jupyter<65>force_interactive<76> soft_wrapr<70><00>stderr<72>file<6C>quietrkrlr<><00>no_color<6F>tab_size<7A>recordr}<00>emoji<6A> emoji_variantr|<00>log_time<6D>log_path<74>log_time_format<61> highlighterrs<00>safe_box<6F> get_datetime<6D>get_timer?rB)r@r(r)r*r+rCrDrErFr<>rGrHrIrkrlr<>rJrKrLr}rMrNr|rOrPrQrR<00>HighlighterTypersrSrTrUc<00>j<00>|<1C>||_|<03>
t<00>n||_|jr<>|
<EFBFBD>?|jjd<01>}|<1D>|j <00>r t |<1D>}
nt }
| <0B>?|jjd<02>}|<1E>|j <00>r t |<1E>} nt} ||_||_ ||_
||_ ||_ ||_ |<18>t<00>xr|j n||_|
<EFBFBD>E|jjd<03>}|<1F>(|j <00>rt |<1F>|jz
}
| <0B>8|jjd<04>} | <20>| j <00>r t | <20>} ||_|
|_| |_|d|_|<02>||_||_| |_||_|<01>d|_n)|dk(r|j1<00>|_nt2||_t5j6<00>|_t;|||<16><06>|_|xst>|_ ||_!|xstDjF|_$|xstJ|_&| |_'| <0A>| n|jjdd<08>dk7|_(|<04>-|jjd d<00>}!|!<21>|!d
k(rd }n|!d k(rd }|<04>|jRxr|jT n||_+t5j6<00>|_,t[t]|<06>t^j`n|<06><00><0E>|_1g|_2g|_3g|_4d |_5y)N<>JUPYTER_COLUMNS<4E> JUPYTER_LINES<45>COLUMNS<4E>LINESr@)<03> show_time<6D> show_path<74> time_format<61>NO_COLORr<52><00>TTY_INTERACTIVE<56>0F<30>1T)r.)6r?r'<00>
is_jupyterr<EFBFBD><00>isdigitrn<00>JUPYTER_DEFAULT_COLUMNS<4E>JUPYTER_DEFAULT_LINESrKrL<00>_markup<75>_emoji<6A>_emoji_variant<6E>
_highlightr=rsrF<00>_width<74>_height<68>_force_terminal<61>_filerIrG<00> _color_system<65>_detect_color_system<65> COLOR_SYSTEMS<4D> threading<6E>RLockr<6B>r-<00> _log_render<65>_null_highlighterrRrSr<00>nowrTrrUr<>rJrv<00>is_dumb_terminal<61>is_interactive<76>_record_buffer_lockr-rLr'<00>DEFAULT<4C>_thread_locals<6C>_record_buffer<65> _render_hooks<6B> _live_stack<63>_is_alt_screen)"r<>rBrCrDrErFr<>rGrHrIrkrlr<>rJrKrLr}rMrNr|rOrPrQrRrsrSrTrUr?<00>jupyter_columns<6E> jupyter_lines<65>columnsr<73><00>tty_interactives" rdr<>zConsole.__init__qs<00><00>F <14> <1F>$<24>D<EFBFBD>M<EFBFBD>+8<>+@<40>+<2B>-<2D>m<EFBFBD><04><0F> <0F>?<3F>?<3F><14>}<7D>"&<26>-<2D>-<2D>"3<>"3<>4E<34>"F<><0F>"<22>.<2E>?<3F>3J<33>3J<33>3L<33><1F><0F>0<>E<EFBFBD>3<>E<EFBFBD><15>~<7E> $<24> <0A> <0A> 1<> 1<>/<2F> B<> <0A> <20>,<2C><1D>1F<31>1F<31>1H<31> <20><1D>/<2F>F<EFBFBD>2<>F<EFBFBD> <20><04> <0A><1C><04> <0B><1D><04> <0C><1B><04> <0B>6C<36><04><1B>#<23><04><0F><1E>%<25>#<23> $<24> <<3C>T<EFBFBD>_<EFBFBD>_<EFBFBD>)<<3C><1F> <0A><1B> <11>=<3D><1A>m<EFBFBD>m<EFBFBD>'<27>'<27> <09>2<>G<EFBFBD><16>"<22>w<EFBFBD><EFBFBD><EFBFBD>'8<><1B>G<EFBFBD> <0C>t<EFBFBD>':<3A>':<3A>:<3A><05> <11>><3E><18>M<EFBFBD>M<EFBFBD>%<25>%<25>g<EFBFBD>.<2E>E<EFBFBD><14> <20>U<EFBFBD>]<5D>]<5D>_<EFBFBD><1C>U<EFBFBD><1A><06>"<22><04><0E><1B><04> <0B><1D><04> <0C> <0C>#<23><04><1C> <19> %<25>#1<>D<EFBFBD> <20><19><04>
<EFBFBD><1A><04>
<EFBFBD><1C><04> <0B> <17> <1F>!%<25>D<EFBFBD> <1E> <19>V<EFBFBD> #<23>!%<25>!:<3A>!:<3A>!<<3C>D<EFBFBD> <1E>!.<2E>|<7C>!<<3C>D<EFBFBD> <1E><1E>_<EFBFBD>_<EFBFBD>&<26><04>
<EFBFBD>$<24><1E><1E>'<27>
<EFBFBD><04><18>
-8<>,L<>;L<><04><18> <20><04> <0A>(<28>8<>H<EFBFBD>L<EFBFBD>L<EFBFBD><04><19> <20>-<2D>I<EFBFBD><04> <0A><1A><04>
<EFBFBD><18>#<23> <15><15><1D><1D>"<22>"<22>:<3A>r<EFBFBD>2<>b<EFBFBD>8<> <0A> <0A>
<1D> $<24>"<22>m<EFBFBD>m<EFBFBD>/<2F>/<2F>0A<30>4<EFBFBD>H<>O<EFBFBD><1E>*<2A>"<22>c<EFBFBD>)<29>(-<2D>%<25>$<24><03>+<2B>(,<2C>%<25>!<21>(<28><12> <1D> <1D> ;<3B>d<EFBFBD>&;<3B>&;<3B>";<3B>"<22> <0A><1B> $-<2D>?<3F>?<3F>#4<><04> <20>1<>"<22>U<EFBFBD>]<5D>6<EFBFBD>><3E>><3E><05>N<>
<EFBFBD><04><1B>.0<EFBFBD><04><1B>/1<><04><1A>')<29><04><18>#<23><04>rcr~c<00><<00>d|j<00>d|j<00>d<03>S)Nz<console width=<3D> <20>>)rkror<>s rd<00>__repr__zConsole.__repr__<5F>s"<00><00> <20><14><1A><1A> <0C>A<EFBFBD>d<EFBFBD>.@<40>.@<40>-C<>1<EFBFBD>E<>Ercc<00><><00>|jxs,|jrtjntj}t |d|<01>}|<01>t
}|S)z Get the file object to write to.<2E>rich_proxied_file)rnrG<00>sys<79>stdout<75>getattrr$)r<>rHs rdrHz Console.file<6C>s@<00><00><14>z<EFBFBD>z<EFBFBD>H<>D<EFBFBD>K<EFBFBD>K<EFBFBD>c<EFBFBD>j<EFBFBD>j<EFBFBD>S<EFBFBD>Z<EFBFBD>Z<EFBFBD><04><16>t<EFBFBD>0<>$<24>7<><04> <0F><<3C><1C>D<EFBFBD><13> rc<00>new_filec<00><00>||_y)zSet a new file object.N)rn)r<>r<>s rdrHz Console.files <00><00><1E><04>
rcc<00>.<00>|jjS<00>zGet a thread local buffer.)r{r<>r<>s rdr<>zConsole._buffers<00><00><14>"<22>"<22>)<29>)<29>)rcc<00>.<00>|jjSr<><00>r{r0r<>s rd<00> _buffer_indexzConsole._buffer_index s<00><00><14>"<22>"<22>/<2F>/<2F>/rc<00>valuec<00>&<00>||j_yr<>r<>)r<>r<>s rdr<>zConsole._buffer_indexs<00><00>+0<><04><1B><1B>(rcc<00>.<00>|jjS)z!Get the thread local theme stack.)r{r.r<>s rd<00> _theme_stackzConsole._theme_stacks<00><00><14>"<22>"<22>.<2E>.<2E>.rcc<00><><00>|jrtjS|jr |jryt
rR|j rtj
St<00>}|jrtjStjS|jjdd<03>j<00>j<00>}|dvrtjS|jjdd<03>j<00>j<00>}|jd<06>\}}}tj|tj <00>}|S)z"Detect color system from env vars.N<> COLORTERMr<4D>)r*<00>24bit<69>TERM<52>-)rcr0<00> TRUECOLORrvrwr;rsr8r*<00> EIGHT_BITr?r<><00>strip<69>lower<65>
rpartition<EFBFBD> _TERM_COLORS<52>STANDARD)r<><00>windows_console_features<65>
color_term<EFBFBD>term<72>
_term_name<EFBFBD>_hyphen<65>colorsrBs rdrpzConsole._detect_color_systems<00><00> <0F>?<3F>?<3F><1E>(<28>(<28> (<28><13><1F><1F>4<EFBFBD>#8<>#8<><17> <12><13>"<22>"<22>"<22>*<2A>*<2A>*<2A>'C<>'E<> $<24>,<2C>5<>5<><1C>%<25>%<25> <0E>!<21>*<2A>*<2A> <0E> <1E><1D><1D>*<2A>*<2A>;<3B><02>;<3B>A<>A<>C<>I<>I<>K<>J<EFBFBD><19>3<>3<>"<22>,<2C>,<2C>,<2C><17>=<3D>=<3D>$<24>$<24>V<EFBFBD>R<EFBFBD>0<>6<>6<>8<>><3E>><3E>@<40>D<EFBFBD>*.<2E>/<2F>/<2F>#<23>*><3E> '<27>J<EFBFBD><07><16>'<27>+<2B>+<2B>F<EFBFBD>K<EFBFBD>4H<34>4H<34>I<>L<EFBFBD><1F> rcc<00>.<00>|xjdz c_y)z4Enter in to a buffer context, and buffer all output.r%N)r<>r<>s rdr<>zConsole._enter_buffer3s<00><00> <0C><1A><1A>a<EFBFBD><1F>rcc<00>N<00>|xjdzc_|j<00>y)z5Leave buffer context, and render content if required.r%N)r<><00> _check_bufferr<72>s rdr<>zConsole._exit_buffer7s<00><00> <0C><1A><1A>a<EFBFBD><1F><1A> <0C><1A><1A>rc<00>liverNc<00><><00>|j5|jj|<01>t|j<00>dk(cddd<02>S#1swYyxYw)a`Set Live instance. Used by Live context manager (no need to call directly).
Args:
live (Live): Live instance using this Console.
Returns:
Boolean that indicates if the live is the topmost of the stack.
Raises:
errors.LiveError: If this Console has a Live context currently active.
r%N)r<>r~<00>appendr<64>)r<>r<>s rd<00>set_livezConsole.set_live<sG<00><00><12>Z<EFBFBD>Z<EFBFBD> .<2E> <10> <1C> <1C> #<23> #<23>D<EFBFBD> )<29><16>t<EFBFBD>'<27>'<27>(<28>A<EFBFBD>-<2D> .<2E> .<2E> .<2E>s <00>3A
<03>
Ac<00>z<00>|j5|jj<00>ddd<01>y#1swYyxYw)zUClear the Live instance. Used by the Live context manager (no need to call directly).N)r<>r~<00>popr<70>s rd<00>
clear_livezConsole.clear_liveLs0<00><00> <11>Z<EFBFBD>Z<EFBFBD> #<23> <10> <1C> <1C> <20> <20> "<22> #<23> #<23> #<23><><00>1<03>:<07>hookc<00>|<00>|j5|jj|<01>ddd<01>y#1swYyxYw)zpAdd a new render hook to the stack.
Args:
hook (RenderHook): Render hook instance.
N)r<>r}r<>)r<>r<>s rd<00>push_render_hookzConsole.push_render_hookQs4<00><00> <12>Z<EFBFBD>Z<EFBFBD> ,<2C> <10> <1E> <1E> %<25> %<25>d<EFBFBD> +<2B> ,<2C> ,<2C> ,<2C>s<00>2<03>;c<00>z<00>|j5|jj<00>ddd<01>y#1swYyxYw)z'Pop the last renderhook from the stack.N)r<>r}r<>r<>s rd<00>pop_render_hookzConsole.pop_render_hookZs0<00><00> <11>Z<EFBFBD>Z<EFBFBD> %<25> <10> <1E> <1E> "<22> "<22> $<24> %<25> %<25> %<25>r<EFBFBD>c<00>&<00>|j<00>|S)z,Own context manager to enter buffer context.<2E>r<>r<>s rdr<>zConsole.__enter___s<00><00> <0C><1A><1A><1C><13> rcr<><00> exc_value<75> tracebackc<00>$<00>|j<00>y)zExit buffer context.N)r<>)r<>r<>r<>r<>s rdr<>zConsole.__exit__ds<00><00> <0C><19><19>rcc<00>$<00>|j<00>y)z`Begin capturing console output. Call :meth:`end_capture` to exit capture mode and return output.Nr<4E>r<>s rdr<>zConsole.begin_capturehs<00><00> <0C><1A><1A>rcc<00>z<00>|j|j<00>}|jdd<01>=|j<00>|S)zhEnd capture mode and return captured string.
Returns:
str: Console output.
N)r<>r<>r<>)r<><00> render_results rdr<>zConsole.end_capturels5<00><00> <1D>+<2B>+<2B>D<EFBFBD>L<EFBFBD>L<EFBFBD>9<> <0A> <10>L<EFBFBD>L<EFBFBD><11>O<EFBFBD> <0C><19><19><1B><1C>rc<00>r<>r<>c<00>><00>|jj||<02><01>y)a<>Push a new theme on to the top of the stack, replacing the styles from the previous theme.
Generally speaking, you should call :meth:`~rich.console.Console.use_theme` to get a context manager, rather
than calling this method directly.
Args:
theme (Theme): A theme instance.
inherit (bool, optional): Inherit existing styles. Defaults to True.
r<>N)r<>r<><00>r<>r<>r<>s rdr<>zConsole.push_themews<00><00> <0A><19><19>$<24>$<24>U<EFBFBD>G<EFBFBD>$<24><rcc<00>8<00>|jj<00>y)z9Remove theme from top of stack, restoring previous theme.N)r<>r<>r<>s rdr<>zConsole.pop_theme<6D>s<00><00> <0C><19><19>#<23>#<23>%rcc<00><00>t|||<02>S)aUse a different theme for the duration of the context manager.
Args:
theme (Theme): Theme instance to user.
inherit (bool, optional): Inherit existing console styles. Defaults to True.
Returns:
ThemeContext: [description]
)r<>r<>s rd<00> use_themezConsole.use_theme<6D>s<00><00><1C>D<EFBFBD>%<25><17>1<>1rcc<00>B<00>|j<00>t|jSy)zpGet color system string.
Returns:
Optional[str]: "standard", "256" or "truecolor".
N)ro<00>_COLOR_SYSTEMS_NAMESr<53>s rdrBzConsole.color_system<65>s$<00><00> <10> <1D> <1D> )<29>'<27><04>(:<3A>(:<3A>;<3B> ;<3B>rcc<00>T<00>t|jdd<02>xsdj<00>S)zGet the encoding of the console file, e.g. ``"utf-8"``.
Returns:
str: A standard encoding string.
rw<00>utf-8)r<>rHr<>r<>s rdrwzConsole.encoding<6E>s%<00><00><18><04> <09> <09>:<3A>w<EFBFBD>7<>B<>7<EFBFBD>I<>I<>K<>Krcc<00><><00>|j<00> |jSttjd<02>r*tjjj d<03>ry|j ry|j}|jdd<06>}|dk(ry|dk(ry |jd
<EFBFBD>}|<03>|dk7St|jd d<01>} |<04>dS|<04>S#t$rYywxYw) z<>Check if the console is writing to a terminal.
Returns:
bool: True if the console writing to a device capable of
understanding escape sequences, otherwise False.
Nr`<00>idlelibF<62>TTY_COMPATIBLEr<45>rarbT<> FORCE_COLOR<4F>isatty) rm<00>hasattrr<72><00>stdinr`r<>rcr?r<>r<>rH<00>
ValueError)r<><00>environ<6F>tty_compatible<6C> force_colorr<72>s rdrvzConsole.is_terminal<61>s<><00><00> <10> <1F> <1F> +<2B><17>'<27>'<27> '<27> <13>3<EFBFBD>9<EFBFBD>9<EFBFBD>l<EFBFBD> +<2B><03> <09> <09>0D<30>0D<30>0O<30>0O<30> <15>1
<EFBFBD><19> <0F>?<3F>?<3F><18><16>-<2D>-<2D><07> <20><1B><1B>%5<>r<EFBFBD>:<3A><0E> <19>S<EFBFBD> <20><18> <19>S<EFBFBD> <20><17><1E>k<EFBFBD>k<EFBFBD>-<2D>0<> <0B> <16> "<22><1E>"<22>$<24> $<24>07<30>t<EFBFBD>y<EFBFBD>y<EFBFBD>(<28>D<EFBFBD>/Q<><06> <19>"<22>N<EFBFBD>5<EFBFBD> 8<><06><08> 8<><38><19> <19><19>  <19>s<00>C<00>C<00> C<03>Cc<00>~<00>|jjdd<02>}|j<00>dv}|jxr|S)zxDetect dumb terminal.
Returns:
bool: True if writing to a dumb terminal, otherwise False.
r<>r<>)<02>dumb<6D>unknown)r?r<>r<>rv)r<><00>_term<72>is_dumbs rdrwzConsole.is_dumb_terminal<61>s<<00><00><15> <0A> <0A>!<21>!<21>&<26>"<22>-<2D><05><17>+<2B>+<2B>-<2D>#6<>6<><07><13><1F><1F>+<2B>G<EFBFBD>+rcc <00><><00>|j}t|j||jd|j|j
|j <00><02>S)zGet default console options.r%)rxrrrsrtrurwrv)rrrqrlrsrkrwrv)r<>rrs rdr<>zConsole.options<6E>sG<00><00><14>y<EFBFBD>y<EFBFBD><04><1D><1B>{<7B>{<7B><15><1F>.<2E>.<2E><17><1A>j<EFBFBD>j<EFBFBD><19>]<5D>]<5D><1C>(<28>(<28>
<EFBFBD>
rcc<00><><00>|j<00>9|j<00>-t|j|jz
|j<00>S|jr tdd<03>Sd}d}t
rt nt}|D]} tj|<04>\}}n|jjd<04>}|<05>|j<00>r t!|<05>}|jjd<05>}|<06>|j<00>r t!|<06>}|xsd}|xsd}t|j<00>||jz
n |j|j<00>|<02>S|j<00>S#tttf$rY<00><>wxYw)zGet the size of the console.
Returns:
ConsoleDimensions: A named tuple containing the dimensions.
N<>P<00>rZr[)rkrlrjrsrwr;<00>_STD_STREAMS_OUTPUT<55> _STD_STREAMSr#<00>get_terminal_size<7A>AttributeErrorr<72><00>OSErrorr?r<>rdrn)r<>rkrl<00>streams<6D>file_descriptorr<72>r<>s rdrrz Console.size<7A>s]<00><00> <10>;<3B>;<3B> "<22>t<EFBFBD>|<7C>|<7C>'?<3F>$<24>T<EFBFBD>[<5B>[<5B>4<EFBFBD>3F<33>3F<33>%F<><04> <0C> <0C>U<> U<> <0F> <20> <20>$<24>R<EFBFBD><12>,<2C> ,<2C>#<23><05> $<24><06>)0<>%<25>l<EFBFBD><07>&<26> <16>O<EFBFBD> <16> "<22> 4<> 4<>_<EFBFBD> E<> <0A><05>v<EFBFBD><16>  <16><17>-<2D>-<2D>#<23>#<23>I<EFBFBD>.<2E><07> <12> <1E>7<EFBFBD>?<3F>?<3F>#4<><17><07>L<EFBFBD>E<EFBFBD><14> <0A> <0A>!<21>!<21>'<27>*<2A><05> <10> <1C><15><1D><1D><1F><18><15>Z<EFBFBD>F<EFBFBD><16> <0B><12><05><17><1C>2<EFBFBD><06> <20>+/<2F>;<3B>;<3B>+><3E>E<EFBFBD>D<EFBFBD>'<27>'<27> '<27>D<EFBFBD>K<EFBFBD>K<EFBFBD><1A>l<EFBFBD>l<EFBFBD>*<2A>F<EFBFBD>
<EFBFBD>
<EFBFBD>04<EFBFBD> <0C> <0C>
<EFBFBD>
<EFBFBD><EFBFBD>#<23>J<EFBFBD><07>8<> <15><14> <15>s<00>:E<02>E5<05>4E5<05>new_sizec<00>*<00>|\}}||_||_y)zvSet a new size for the terminal.
Args:
new_size (Tuple[int, int]): New width and height.
N)rkrl)r<>r<>rkrls rdrrz Console.sizes<00><00>!<21> <0A><05>v<EFBFBD><1B><04> <0B><1D><04> rcc<00>.<00>|jjS)zsGet the width of the console.
Returns:
int: The width (in characters) of the console.
)rrrkr<>s rdrkz Console.width&s<00><00><14>y<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD>rcc<00><00>||_y)zFSet width.
Args:
width (int): New width.
N)rk)r<>rks rdrkz Console.width/s <00><00><1C><04> rcc<00>.<00>|jjS)zpGet the height of the console.
Returns:
int: The height (in lines) of the console.
)rrrlr<>s rdrlzConsole.height8s<00><00><14>y<EFBFBD>y<EFBFBD><1F><1F>rcc<00><00>||_y)zISet height.
Args:
height (int): new height.
N)rl)r<>rls rdrlzConsole.heightAs <00><00><1E><04> rcc<00>J<00>|jtj<00><00>y)z3Play a 'bell' sound (if supported by the terminal).N)<03>controlr2<00>bellr<6C>s rdr<>z Console.bellJs<00><00> <0C> <0C> <0C>W<EFBFBD>\<5C>\<5C>^<5E>$rcc<00><00>t|<00>}|S)a<>A context manager to *capture* the result of print() or log() in a string,
rather than writing it to the console.
Example:
>>> from rich.console import Console
>>> console = Console()
>>> with console.capture() as capture:
... console.print("[bold magenta]Hello World[/]")
>>> print(capture.get())
Returns:
Capture: Context manager with disables writing to the terminal.
)r<>)r<><00>captures rdr<>zConsole.captureNs<00><00><1A>$<24>-<2D><07><16>rcr<>r<>r<>c<00> <00>t||||<03><01>S)aA context manager to display anything printed within a "pager". The pager application
is defined by the system and will typically support at least pressing a key to scroll.
Args:
pager (Pager, optional): A pager object, or None to use :class:`~rich.pager.SystemPager`. Defaults to None.
styles (bool, optional): Show styles in pager. Defaults to False.
links (bool, optional): Show links in pager. Defaults to False.
Example:
>>> from rich.console import Console
>>> from rich.__main__ import make_test_card
>>> console = Console()
>>> with console.pager():
console.print(make_test_card())
Returns:
PagerContext: A context manager.
)r<>r<>r<>)r<>)r<>r<>r<>r<>s rdr<>z Console.pager_s<00><00>*<1C>D<EFBFBD><05>f<EFBFBD>E<EFBFBD>J<>Jrcr%r<>c<00>P<00>|dk\sJd<02><00>|jt|<01><00>y)zqWrite new line(s).
Args:
count (int, optional): Number of new lines. Defaults to 1.
rzcount must be >= 0N)rr<>r<>s rdr<>z Console.linevs&<00><00><15><01>z<EFBFBD>/<2F>/<2F>/<2F>z<EFBFBD> <0C>
<EFBFBD>
<EFBFBD>7<EFBFBD>5<EFBFBD>><3E>"rc<00>homec<00><><00>|r7|jtj<00>tj<00><00>y|jtj<00><00>y)z<>Clear the screen.
Args:
home (bool, optional): Also move the cursor to 'home' position. Defaults to True.
N)r<>r2<00>clearr<72>)r<>r<>s rdr<>z Console.clear<61>s3<00><00> <10> <10>L<EFBFBD>L<EFBFBD><17><1D><1D><1F>'<27>,<2C>,<2C>.<2E> 9<> <10>L<EFBFBD>L<EFBFBD><17><1D><1D><1F> )rc<00>dotszstatus.spinnerg<00>?g)@)<04>spinner<65> spinner_style<6C>speed<65>refresh_per_second<6E>statusr<73>r<>r<>r<>rPc<00>.<00>ddlm}|||||||<05><03>}|S)atDisplay a status and spinner.
Args:
status (RenderableType): A status renderable (str or Text typically).
spinner (str, optional): Name of spinner animation (see python -m rich.spinner). Defaults to "dots".
spinner_style (StyleType, optional): Style of spinner. Defaults to "status.spinner".
speed (float, optional): Speed factor for spinner animation. Defaults to 1.0.
refresh_per_second (float, optional): Number of refreshes per second. Defaults to 12.5.
Returns:
Status: A Status object that may be used as a context manager.
r%rO)r<>r<>r<>r<>r<>)r<>rP)r<>r<>r<>r<>r<>r<>rP<00>status_renderables rdr<>zConsole.status<75>s,<00><00>* #<23>"<22> <12><18><1B>'<27><17>1<> 
<EFBFBD><19>!<21> rcr<>c<00>f<00>|jr%|jtj|<01><00>yy)zqShow or hide the cursor.
Args:
show (bool, optional): Set visibility of the cursor.
TF)rvr<>r2r)r<>r<>s rdrzConsole.show_cursor<6F>s*<00><00> <10> <1B> <1B> <10>L<EFBFBD>L<EFBFBD><17>,<2C>,<2C>T<EFBFBD>2<> 3<><17>rc<00>enablec<00><><00>d}|jr9|js-|jtj|<01><00>d}||_|S)a<>Enables alternative screen mode.
Note, if you enable this mode, you should ensure that is disabled before
the application exits. See :meth:`~rich.Console.screen` for a context manager
that handles this for you.
Args:
enable (bool, optional): Enable (True) or disable (False) alternate screen. Defaults to True.
Returns:
bool: True if the control codes were written.
FT)rvrsr<>r2<00>
alt_screenr)r<>r<00>changeds rdrzConsole.set_alt_screen<65>sC<00><00><18><07> <0F> <1B> <1B>D<EFBFBD>$7<>$7<> <10>L<EFBFBD>L<EFBFBD><17>+<2B>+<2B>F<EFBFBD>3<> 4<><1A>G<EFBFBD>"(<28>D<EFBFBD> <1F><16>rcc<00><00>|jS)z<>Check if the alt screen was enabled.
Returns:
bool: True if the alt screen was enabled, otherwise False.
)rr<>s rd<00> is_alt_screenzConsole.is_alt_screen<65>s<00><00><14>"<22>"<22>"rc<00>titlec<00>f<00>|jr%|jtj|<01><00>yy)aSet the title of the console terminal window.
Warning: There is no means within Rich of "resetting" the window title to its
previous value, meaning the title you set will persist even after your application
exits.
``fish`` shell resets the window title before and after each command by default,
negating this issue. Windows Terminal and command prompt will also reset the title for you.
Most other shells and terminals, however, do not do this.
Some terminals may require configuration changes before you can set the title.
Some terminals may not support setting the title at all.
Other software (including the terminal itself, the shell, custom prompts, plugins, etc.)
may also set the terminal window title. This could result in whatever value you write
using this method being overwritten.
Args:
title (str): The new title of the terminal window.
Returns:
bool: True if the control code to change the terminal title was
written, otherwise False. Note that a return value of True
does not guarantee that the window title has actually changed,
since the feature may be unsupported/disabled in some terminals.
TF)rvr<>r2r)r<>rs rd<00>set_window_titlezConsole.set_window_title<6C>s(<00><00>6 <10> <1B> <1B> <10>L<EFBFBD>L<EFBFBD><17><1D><1D>u<EFBFBD>-<2D> .<2E><17>rcr<>r<>c<00>&<00>t|||xsd<01><02>S)auContext manager to enable and disable 'alternative screen' mode.
Args:
hide_cursor (bool, optional): Also hide the cursor. Defaults to False.
style (Style, optional): Optional style for screen. Defaults to None.
Returns:
~ScreenContext: Context which enables alternate screen on enter, and disables it on exit.
r<>)r<>r<>)r<>)r<>r<>r<>s rdr<>zConsole.screen<65>s<00><00><1D>T<EFBFBD>{<7B>%<25>+<2B>2<EFBFBD>N<>Nrc<00>r<>rr<>c<00>P<00>tj||xs |j|<01>}|S)a<>Measure a renderable. Returns a :class:`~rich.measure.Measurement` object which contains
information regarding the number of characters required to print the renderable.
Args:
renderable (RenderableType): Any renderable or string.
options (Optional[ConsoleOptions], optional): Options to use when measuring, or None
to use default options. Defaults to None.
Returns:
Measurement: A measurement of the renderable.
)r8r<>r<>)r<>rr<><00> measurements rd<00>measurezConsole.measures%<00><00>"<22>o<EFBFBD>o<EFBFBD>d<EFBFBD>G<EFBFBD>,C<>t<EFBFBD>|<7C>|<7C>Z<EFBFBD>P<> <0B><1A>rcc#<00>vK<00>|xs |j}|jdkryt|<01>}t|d<03>rt |<01>s|j ||<03>}ndt |t<00>r;|j||j|j<00><04>}|j ||<03>}ntjd|<01>d<06><03><00> t|<04>}t}|j!<00>}|D]-}t ||<07>r|<08><01><00>|j#||<03>Ed{<00><02><02><00>/y#t$rtjd|<04>d<08><03><00>wxYw7<00>-<2D>w) akRender an object in to an iterable of `Segment` instances.
This method contains the logic for rendering objects with the console protocol.
You are unlikely to need to use it directly, unless you are extending the library.
Args:
renderable (RenderableType): An object supporting the console protocol, or
an object that may be converted to a string.
options (ConsoleOptions, optional): An options object, or None to use self.options. Defaults to None.
Returns:
Iterable[Segment]: An iterable of segments that may be rendered.
r%Nr<4E>)r|r}zUnable to render zC; A str, Segment or object with __rich_console__ method is requiredzobject z is not renderable)r<>rur>r<>r r<>r<>r<><00>
render_strr|r}r&<00>NotRenderableError<6F>iter<65> TypeErrorrBr<>r7) r<>rr<><00>_options<6E>render_iterable<6C>text_renderable<6C> iter_render<65>_Segment<6E> render_outputs rdr7zConsole.rendersP<00><00><><00>"<1B>*<2A>d<EFBFBD>l<EFBFBD>l<EFBFBD><08> <13> <1D> <1D><01> !<21> <12><1F>z<EFBFBD>*<2A>
<EFBFBD> <12>:<3A>1<> 2<>7<EFBFBD>:<3A>;N<>(<28>9<>9<>$<24><08>I<>O<EFBFBD> <17>
<EFBFBD>C<EFBFBD> (<28>"<22>o<EFBFBD>o<EFBFBD><1A>h<EFBFBD>&8<>&8<><18><1F><1F>.<2E><0E>O<EFBFBD>.<2E>><3E>><3E>t<EFBFBD>X<EFBFBD>N<>O<EFBFBD><18>+<2B>+<2B>#<23>J<EFBFBD>><3E>2T<01>T<01><0E> <0E>
 <0E><1E><EFBFBD>/<2F>K<EFBFBD>
<1B><08><1B>(<28>(<28>*<2A><08>(<28> @<01>M<EFBFBD><19>-<2D><18>2<>#<23>#<23><1F>;<3B>;<3B>}<7D>h<EFBFBD>?<3F>?<3F>?<3F>  @<01><> <19> <0E><18>+<2B>+<2B><19>/<2F>,<2C>,><3E>?<3F><0E> <0E> <0E><>@<01>s+<00>B:D9<01>= D<00>AD9<01> D7<06>
D9<01>#D4<03>4D9)r<><00>pad<61> new_linesrrc <00>^<00>|j5|xs |j}|j||<06>}|rtj||<03>}|j
}|<08> t d|<08>}tttj||j|||<03><03>d|<08><00>} |j
<00>r|j
t| <09>z
}
|
dkDrU|r$td|jz|<03>td<05>gntd|jz|<03>gg} | j| |
z<00>| cddd<01>S#1swYyxYw)aGRender objects in to a list of lines.
The output of render_lines is useful when further formatting of rendered console text
is required, such as the Panel class which draws a border around any renderable object.
Args:
renderable (RenderableType): Any object renderable in the console.
options (Optional[ConsoleOptions], optional): Console options, or None to use self.options. Default to ``None``.
style (Style, optional): Optional style to apply to renderables. Defaults to ``None``.
pad (bool, optional): Pad lines shorter than render width. Defaults to ``True``.
new_lines (bool, optional): Include "
" characters at end of lines.
Returns:
List[List[Segment]]: A list of lines, where a line is a list of Segment objects.
Nr)<03>include_new_linesrr<>r<>r<>) r<>r<>r7rB<00> apply_stylerlr<>rr <00>split_and_crop_linesrur<><00>extend) r<>rr<>r<>rr<00>render_options<6E> _rendered<65> render_heightr<74><00> extra_lines<65>pad_lines rd<00> render_lineszConsole.render_linesGs6<00><00>0<12>Z<EFBFBD>Z<EFBFBD>& <19>$<24>4<><04> <0C> <0C>N<EFBFBD><1C> <0B> <0B>J<EFBFBD><0E>?<3F>I<EFBFBD><14>#<23>/<2F>/<2F> <09>5<EFBFBD>A<> <09>*<2A>1<>1<>M<EFBFBD><1C>(<28> #<23>A<EFBFBD>}<7D> 5<> <0A><18><16><1B>0<>0<>!<21>&<26>0<>0<>*3<><1F>#<23> <16><19>!<21>
<12> <0E>E<EFBFBD><1E>$<24>$<24>0<>,<2C>3<>3<>c<EFBFBD>%<25>j<EFBFBD>@<40> <0B><1E><11>?<3F> )<29>!(<28><03>n<EFBFBD>.F<>.F<>(F<><05> N<> '<27><04> <0A><1E>
#*<2A>#<23><0E>0H<30>0H<30>*H<>%<25>"P<>!Q<> <16>H<EFBFBD><1A>L<EFBFBD>L<EFBFBD><18>K<EFBFBD>!7<>8<><18>M& <19>& <19>& <19>s <00>D D#<03>#D,r<>)r<>ryrzrMr}r|rR<00>textryrzrIc<00><><00>|xs|duxr |j} |xs|duxr |j}
|xs|duxr |j} |
r(t||| |j<00><02>} || _|| _n(t| rt||j<00><03>n||||<02><04>} | r|xs|jnd} | <0A>$| t| <0C><00>}|j| <0C>|S| S)a<>Convert a string to a Text instance. This is called automatically if
you print or log a string.
Args:
text (str): Text to render.
style (Union[str, Style], optional): Style to apply to rendered text.
justify (str, optional): Justify method: "default", "left", "center", "full", or "right". Defaults to ``None``.
overflow (str, optional): Overflow method: "crop", "fold", or "ellipsis". Defaults to ``None``.
emoji (Optional[bool], optional): Enable emoji, or ``None`` to use Console default.
markup (Optional[bool], optional): Enable markup, or ``None`` to use Console default.
highlight (Optional[bool], optional): Enable highlighting, or ``None`` to use Console default.
highlighter (HighlighterType, optional): Optional highlighter to apply.
Returns:
ConsoleRenderable: Renderable object.
N)r<>rMrN)<01>default_variant)ryrzr<>) rhrgrj<00> render_markupriryrzrIr(rRr<><00> copy_styles)r<>r&r<>ryrzrMr}r|rR<00> emoji_enabled<65>markup_enabled<65>highlight_enabled<65> rich_text<78> _highlighter<65>highlight_texts rdrzConsole.render_str<74>s<><00><00>8<1E>@<40>%<25>4<EFBFBD>-<2D>"?<3F>D<EFBFBD>K<EFBFBD>K<EFBFBD> <0A><1F>D<>F<EFBFBD>d<EFBFBD>N<EFBFBD>$C<>t<EFBFBD>|<7C>|<7C><0E>%<25>P<>)<29>t<EFBFBD>*;<3B>*O<><04><0F><0F><19> <19>%<25><14><1B>#<23>"<22>1<>1<> <0E>I<EFBFBD> !(<28>I<EFBFBD> <1D>!)<29>I<EFBFBD> <1E><1C>%<25>#<23>4<EFBFBD><14>9L<39>9L<39>M<><1D><1F>!<21><1B> <0E>I<EFBFBD>=N<01> <0B>7<>t<EFBFBD>'7<>'7<>SW<53> <0C> <17> #<23>)<29>#<23>i<EFBFBD>.<2E>9<>N<EFBFBD> <1A> &<26> &<26>y<EFBFBD> 1<>!<21> !<21><18>rc)rT<00>namerTc<00>f<00>t|t<00>r|S |jj|<01>}|<03>tj|<01>}|j
r|j <00>S|S#tj$r9}|<02>|j|<02>cYd}~Stjd|<01>d|<04><00><04>d<01>d}~wwxYw)a Get a Style instance by its theme name or parse a definition.
Args:
name (str): The name of a style or a style definition.
Returns:
Style: A Style object.
Raises:
MissingStyle: If no style could be parsed from name.
NzFailed to get style z; ) r<>rCr<>r<><00>parse<73>linkr<6B>r&<00>StyleSyntaxError<6F> get_style<6C> MissingStyle)r<>r1rTr<><00>errors rdr6zConsole.get_style<6C>s<><00><00> <16>d<EFBFBD>E<EFBFBD> "<22><17>K<EFBFBD>
<18><18>%<25>%<25>)<29>)<29>$<24>/<2F>E<EFBFBD><14>}<7D><1D> <0B> <0B>D<EFBFBD>)<29><05>#(<28>:<3A>:<3A>5<EFBFBD>:<3A>:<3A><<3C> 8<>5<EFBFBD> 8<><38><15>&<26>&<26> <18><16>"<22><1B>~<7E>~<7E>g<EFBFBD>.<2E>.<2E><18>%<25>%<25>&<26>t<EFBFBD>h<EFBFBD>b<EFBFBD><15><07>8<><0E><17> <18><> <18>s*<00>A A$<00>"A$<00>$B0<03>7B+<03> B0<03>B+<03>+B0<03>ryrMr}r|<00>objects<74>sepr<70>c
<00><><00><02><03><04><0F><10><11>g}|j<00>g<00><11>j} <09><0F><10>dvrdtddf<04><0F>fd<05> }
|
<EFBFBD>t} |s|<07>|jr |j} d <09><10><03><04><02>fd<06> } |D]<5D>} t | <0A>} t | t<00>r| |j| |||| <0B><07><00><00>;t | t<00>r | | <0A><00>Tt | t<00>r| <0C><00>| <0A><00>tt| <0A>r| <0C><00>t| | <0B><08><00><00><>| | t| <0A><00><00><00><>| <0C>|j<00>4|j|j<00>}|D<00> cgc]} t| |<0E><00><02>}} |Scc} w)
aCombine a number of renderables and text into one renderable.
Args:
objects (Iterable[Any]): Anything that Rich can render.
sep (str): String to write between print data.
end (str): String to write at end of print data.
justify (str, optional): One of "left", "right", "center", or "full". Defaults to ``None``.
emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default.
markup (Optional[bool], optional): Enable markup, or ``None`` to use console default.
highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default.
Returns:
List[ConsoleRenderable]: A list of things to render.
)rUrVrWrr~Nc <00>F<00><02><00>t|tt<00><02><00><00>yr<>)r.r"r/)r<00>_appendrys <20><>rd<00> align_appendz2Console._collect_renderables.<locals>.align_appends<00><><00><17><05>j<EFBFBD>$<24>{<7B>G<EFBFBD>*D<>E<>Frcc<00>v<00><05><00>r6t<00><04><03><02><01>}<00>|j<00><05><00><00>j<00>yy)N)ryr<>)rI<00>joinr<6E>)<06>sep_textr<74>r<>ryr;r&s <20><><EFBFBD><EFBFBD><EFBFBD>rd<00>
check_textz0Console._collect_renderables.<locals>.check_text s3<00><><00><13><1F><03>W<EFBFBD>#<23>><3E><08><16>x<EFBFBD>}<7D>}<7D>T<EFBFBD>*<2A>+<2B><14>
<EFBFBD>
<EFBFBD> <0C>rc)rMr}r|rR)rR<00>r~N)r<>rrurjrRr>r<>r<>rrIr<>r=r<r<>r6rE)r<>r:r;r<>ryrMr}r|r<><00> append_textr?r/rCrr<>r>r<>r&s ``` @@@rd<00>_collect_renderableszConsole._collect_renderables<65>se<00><><00>202<30> <0B><1D>$<24>$<24><07><1D><04><1A>k<EFBFBD>k<EFBFBD> <0B><18><06> <12>1<> 1<> G<01><1E> G<01>D<EFBFBD> G<01>"<22>F<EFBFBD>(9<> <0C> <14><19>*<2A>t<EFBFBD><EFBFBD><EFBFBD><1F>+<2B>+<2B>L<EFBFBD> <1D> <1D> "<22> ;<3B>J<EFBFBD>"<22>:<3A>.<2E>J<EFBFBD><19>*<2A>c<EFBFBD>*<2A><1B><18>O<EFBFBD>O<EFBFBD>"<22>#<23>%<25>"+<2B>$0<> $<24><16><12><1C>J<EFBFBD><04>-<2D><1B>J<EFBFBD>'<27><1B>J<EFBFBD>(9<>:<3A><1A> <0C><16>z<EFBFBD>"<22><1E>z<EFBFBD>*<2A><1A> <0C><16>v<EFBFBD>j<EFBFBD>l<EFBFBD>C<>D<><1B>L<EFBFBD><13>Z<EFBFBD><1F>9<>:<3A>+ ;<3B>. <13> <0C> <0F>:<3A>:<3A> !<21><18>N<EFBFBD>N<EFBFBD>4<EFBFBD>:<3A>:<3A>.<2E>E<EFBFBD>GR<47>S<><1A>6<EFBFBD>*<2A>e<EFBFBD>4<>S<>K<EFBFBD>S<><1A><1A><>Ts<00> E$u─z rule.linerV)<03>
charactersr<EFBFBD><00>alignrGrHc<00>J<00>ddlm}|||||<04><03>}|j|<06>y)u<>Draw a line with optional centered title.
Args:
title (str, optional): Text to render over the rule. Defaults to "".
characters (str, optional): Character(s) to form the line. Defaults to "─".
style (str, optional): Style of line. Defaults to "rule.line".
align (str, optional): How to align the title, one of "left", "center", or "right". Defaults to "center".
r%)<01>Rule)rrGr<>rHN)<03>rulerJr)r<>rrGr<>rHrJrKs rdrKz Console.rule1s#<00><00> <1F><13>%<25>J<EFBFBD>e<EFBFBD>5<EFBFBD>Q<><04> <0C>
<EFBFBD>
<EFBFBD>4<EFBFBD>rcr<>c<00><><00>|js.|5|jjd<01>|D<00><00>ddd<02>yy#1swYyxYw)z<>Insert non-printing control codes.
Args:
control_codes (str): Control codes, such as those that may move the cursor.
c3<00>4K<00>|]}|j<00><01><00>y<00>wr<>)<01>segment)<02>.0<EFBFBD>_controls rd<00> <genexpr>z"Console.control.<locals>.<genexpr>Ns<00><00><><00>#M<><18>H<EFBFBD>$4<>$4<>#M<><4D><00>N)rwr<>r)r<>r<>s rdr<>zConsole.controlFsL<00><00> <14>$<24>$<24><15> N<01><14> <0C> <0C>#<23>#<23>#M<>W<EFBFBD>#M<>M<> N<01> N<01>%<25> N<01> N<01>s <00>#<<03>Ar<>r<>)r;r<>r<>r|c <00>h<00>|jd<01>|D<00><00>}|j|||ddddd|<02><05> y)a<>Output to the terminal. This is a low-level way of writing to the terminal which unlike
:meth:`~rich.console.Console.print` won't pretty print, wrap text, or apply markup, but will
optionally apply highlighting and a basic style.
Args:
sep (str, optional): String to write between print data. Defaults to " ".
end (str, optional): String to write at end of print data. Defaults to "\\n".
style (Union[str, Style], optional): A style to apply to output. Defaults to None.
highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use
console default. Defaults to ``None``.
c3<00>2K<00>|]}t|<01><00><01><00>y<00>wr<>)r<>)rO<00>_objects rdrQzConsole.out.<locals>.<genexpr>cs<00><00><><00>"G<>G<EFBFBD>3<EFBFBD>w<EFBFBD><<3C>"G<><47><00>FTr\)r<>r|rMr}r{rzrZr<>N)rAr)r<>r;r<>r<>r|r:<00>
raw_outputs rd<00>outz Console.outPsD<00><00>&<1E>(<28>(<28>"G<>w<EFBFBD>"G<>G<>
<EFBFBD> <0C>
<EFBFBD>
<EFBFBD> <16><17><1F><17><18><18><1D><16><13> <13>
rc)r;r<>r<>ryrzr{rMr}r|rkrlrZrF<00>new_line_startr{rZrYc
<00>V<00>|s t<00>f}| <0A> |j} | r
|<06>d}|<05>d}d} |jdd}|5|j||||||| <09><05>}|D]}|j |<11>}<11>|j
j |||
<EFBFBD>t|
|j<00>nt| ||| <09><06>}g}|j}|j}|<03>|D]}||||<13><00><00>n<>|j|<03>}tj<00>}|D]V}tj|||<13><00>D]5\}}|tj ||<18><00>|s<01>%|j#|<19><00>7<00>X|rVt%dj'd<08>|D<00><00>j)<00><00>d kDr$|j+d
tj<00><00>| rF|j,j}tj.||jd<04> <0B>D]
}||<1A><00> n|j,j|<14>ddd<01>y#1swYyxYw) a[Print to the console.
Args:
objects (positional args): Objects to log to the terminal.
sep (str, optional): String to write between print data. Defaults to " ".
end (str, optional): String to write at end of print data. Defaults to "\\n".
style (Union[str, Style], optional): A style to apply to output. Defaults to None.
justify (str, optional): Justify method: "default", "left", "right", "center", or "full". Defaults to ``None``.
overflow (str, optional): Overflow method: "ignore", "crop", "fold", or "ellipsis". Defaults to None.
no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to None.
emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default. Defaults to ``None``.
markup (Optional[bool], optional): Enable markup, or ``None`` to use console default. Defaults to ``None``.
highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default. Defaults to ``None``.
width (Optional[int], optional): Width of output, or ``None`` to auto-detect. Defaults to ``None``.
crop (Optional[bool], optional): Crop output to width of terminal. Defaults to True.
soft_wrap (bool, optional): Enable soft wrap mode which disables word wrapping and cropping of text or ``None`` for
Console default. Defaults to ``None``.
new_line_start (bool, False): Insert a new line at the start if the output contains more than one line. Defaults to ``False``.
NTr\Fr9)ryrzrkrlr{r}r|r<>c3<00>4K<00>|]}|j<00><01><00>y<00>wr<><00>r&<00>rOrNs rdrQz Console.print.<locals>.<genexpr><3E>s<00><00><><00>I<><17><07> <0C> <0C>I<>rRr%r<00>r)r<>rFr}rFr4r<>r<><00>minrkr<>rr7r6rBr<><00>split_lines_terminatorrr<>r<>rA<00>
splitlines<EFBFBD>insertr<74>r)r<>r;r<>r<>ryrzr{rMr}r|rkrlrZrFrYr:<00> render_hooksr<73>r<>r <00> new_segmentsrr7r<00> render_style<6C>new_liner<65><00> add_new_line<6E> buffer_extends rdrz Console.printpsF<00><00>J<17><1E>y<EFBFBD>l<EFBFBD>G<EFBFBD> <14> <1C><1C><0E><0E>I<EFBFBD> <14><16><EFBFBD><1E><07><17><1F>#<23><08><18>D<EFBFBD><1B>)<29>)<29>!<21>,<2C> <0C> <11>4 2<><1E>3<>3<><17><13><13><1F><1B><1D>#<23>4<><0E>K<EFBFBD>%<25> D<01><04>"<22>6<>6<>{<7B>C<> <0B> D<01>!<21>\<5C>\<5C>0<>0<><1F>!<21>05<30>0A<30>c<EFBFBD>%<25><14><1A><1A>,<2C>y<EFBFBD><1D><1F><1D>#<23>1<><0E>N<EFBFBD>+-<2D>L<EFBFBD>!<21>(<28>(<28>F<EFBFBD><19>[<5B>[<5B>F<EFBFBD><14>}<7D>"-<2D>?<3F>J<EFBFBD><1A>6<EFBFBD>*<2A>n<EFBFBD>=<3D>><3E>?<3F> $<24>~<7E>~<7E>e<EFBFBD>4<> <0C>"<22><<3C><<3C>><3E><08>"-<2D>:<3A>J<EFBFBD>.5<EFBFBD>.L<>.L<><1E>z<EFBFBD>><3E>:<3A>/<16>:<3A>*<2A><04>l<EFBFBD><1F>w<EFBFBD>2<>2<>4<EFBFBD><1C>F<>G<>'<27>(<28>/<2F>/<2F><08>9<> :<3A>:<3A><1E><17><02><07><07>I<>L<EFBFBD>I<>I<>T<>T<>V<>W<><17><18>!<21>'<27>'<27><01>7<EFBFBD><<3C><<3C>><3E>:<3A><13> $<24> <0C> <0C> 3<> 3<> <0A>#<23>8<>8<> <20>$<24>*<2A>*<2A>%<25><12>(<28>D<EFBFBD>"<22>$<24>'<27>(<28>
<15> <0C> <0C>#<23>#<23>L<EFBFBD>1<>i4 2<>4 2<>4 2<>s<00>D H<03>CH<03>H(re) <09>data<74>indentr|<00> skip_keys<79> ensure_ascii<69>check_circular<61> allow_nanrT<00> sort_keys<79>jsonrirjrkrlrmrnroc <00><><00>ddlm} |<01>| j|||||||| |
<EFBFBD><04> } n0t|t<00>st d|<01>d<06><03><00>| |||||||| |
<EFBFBD><04> } |j | d<07><08>y) a<>Pretty prints JSON. Output will be valid JSON.
Args:
json (Optional[str]): A string containing JSON.
data (Any): If json is not supplied, then encode this data.
indent (Union[None, int, str], optional): Number of spaces to indent. Defaults to 2.
highlight (bool, optional): Enable highlighting of output: Defaults to True.
skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
check_circular (bool, optional): Check for circular references. Defaults to True.
allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
default (Callable, optional): A callable that converts values that can not be encoded
in to something that can be JSON encoded. Defaults to None.
sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
r)<01>JSONN)rjr|rkrlrmrnrTroz/json must be str. Did you mean print_json(data=z) ?T)rF)<07> rich.jsonrr<00> from_datar<61>r<>rr) r<>rprirjr|rkrlrmrnrTrorr<00>json_renderables rd<00>
print_jsonzConsole.print_json<6F>s<><00><00>: #<23> <0F><<3C>"<22>n<EFBFBD>n<EFBFBD><14><1D>#<23>#<23>)<29>-<2D>#<23><1F>#<23>-<2D>
<0E>O<EFBFBD><1E>d<EFBFBD>C<EFBFBD>(<28><1F>E<>d<EFBFBD>X<EFBFBD>S<EFBFBD>Q<><12><12>#<23><14><1D>#<23>#<23>)<29>-<2D>#<23><1F>#<23>
<0E>O<EFBFBD> <0A>
<EFBFBD>
<EFBFBD>?<3F>d<EFBFBD>
<EFBFBD>3rc)<02>regionr<6E>rwc<00>Z<00>|jstjd<01><00>|xs |j}|<02>9dx}}|j |j
|j xs |j <00>}n|\}}}}|j ||<08>}|j||<04><04>} |j| ||<06>y)a<>Update the screen at a given offset.
Args:
renderable (RenderableType): A Rich renderable.
region (Region, optional): Region of screen to update, or None for entire screen. Defaults to None.
x (int, optional): x offset. Defaults to 0.
y (int, optional): y offset. Defaults to 0.
Raises:
errors.NoAltScreen: If the Console isn't in alt screen mode.
<20>0Alt screen must be enabled to call update_screenNrr
) rr&<00> NoAltScreenr<6E>r<>rurlr%<00>update_screen_lines)
r<EFBFBD>rrwr<>r r<>r<>rkrlr<>s
rd<00> update_screenzConsole.update_screens<><00><00>&<14>!<21>!<21><18>$<24>$<24>%W<>X<> X<> <20>0<>D<EFBFBD>L<EFBFBD>L<EFBFBD><0E> <11>><3E><15>I<EFBFBD>A<EFBFBD><01>+<2B>=<3D>=<3D><1E>(<28>(<28>.<2E>*?<3F>*?<3F>*N<>4<EFBFBD>;<3B>;<3B><0E>N<EFBFBD>#)<29> <1F>A<EFBFBD>q<EFBFBD>%<25><16>+<2B>=<3D>=<3D>e<EFBFBD>V<EFBFBD>L<>N<EFBFBD><14>!<21>!<21>*<2A>n<EFBFBD>!<21>E<><05> <0C> <20> <20><15><01>1<EFBFBD>-rcr<>r<>r<>c<00><><00>|jstjd<01><00>t|||<03>}|j |<04>}|j
j |<05>|j<00>y)a<>Update lines of the screen at a given offset.
Args:
lines (List[List[Segment]]): Rendered lines (as produced by :meth:`~rich.Console.render_lines`).
x (int, optional): x offset (column no). Defaults to 0.
y (int, optional): y offset (column no). Defaults to 0.
Raises:
errors.NoAltScreen: If the Console isn't in alt screen mode.
ryN)rr&rzr<>r7r<>rr<>)r<>r<>r<>r<><00> screen_updater<65>s rdr{zConsole.update_screen_lines6sY<00><00><14>!<21>!<21><18>$<24>$<24>%W<>X<> X<>$<24>U<EFBFBD>A<EFBFBD>q<EFBFBD>1<> <0A><17>;<3B>;<3B>}<7D>-<2D><08> <0C> <0C> <0C><1B><1B>H<EFBFBD>%<25> <0C><1A><1A>rcrR<00>rb<00>rkr#r<><00> word_wrap<61> show_locals<6C>suppress<73>
max_framesr#r<>r<>r<>r<>c <00>P<00>ddlm}||||||||<07><03>} |j| <09>y)a Prints a rich render of the last exception and traceback.
Args:
width (Optional[int], optional): Number of characters used to render code. Defaults to 100.
extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
theme (str, optional): Override pygments theme used in traceback
word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
show_locals (bool, optional): Enable display of local variables. Defaults to False.
suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
r%)<01> Tracebackr<6B>N)r<>r<>r)
r<EFBFBD>rkr#r<>r<>r<>r<>r<>r<>r<>s
rd<00>print_exceptionzConsole.print_exceptionJs4<00><00>, )<29><1D><17>#<23><17><1F>#<23><1D>!<21>
<EFBFBD> <09> <0A>
<EFBFBD>
<EFBFBD>9<EFBFBD>rcr<><00> currentframec<00><<00>|dz }|<01>}|<02>K|r|<02>|j}|dz}|r|<02><01>|<02>J<00>|jj|j|jfSt j <00>|}|j|j|jjfS)aEGet caller frame information.
Args:
offset (int): the caller offset within the current frame stack.
currentframe (Callable[[], Optional[FrameType]], optional): the callable to use to
retrieve the current frame. Defaults to ``inspect.currentframe``.
Returns:
Tuple[str, int, Dict[str, Any]]: A tuple containing the filename, the line number and
the dictionary of local variables associated with the caller frame.
Raises:
RuntimeError: If the stack offset is invalid.
r%)
<EFBFBD>f_back<63>f_code<64> co_filename<6D>f_lineno<6E>f_locals<6C>inspect<63>stack<63>filename<6D>lineno<6E>frame)r<>r<>r<><00>
frame_infos rd<00>_caller_frame_infozConsole._caller_frame_infoms<><00><00>( <0F>!<21> <0B><06><1C><0E><05> <10> <1C><18>U<EFBFBD>.<2E><1D> <0C> <0C><05><16>!<21> <0B><06><19>U<EFBFBD>.<2E><19>$<24> $<24>$<24><18><<3C><<3C>+<2B>+<2B>U<EFBFBD>^<5E>^<5E>U<EFBFBD>^<5E>^<5E>K<> K<>!<21><1D><1D><1F><16>0<>J<EFBFBD><1D>&<26>&<26>
<EFBFBD>(9<>(9<>:<3A>;K<>;K<>;T<>;T<>T<> Trc) r;r<>r<>ryrMr}r|<00>
log_locals<EFBFBD> _stack_offsetr<74>r<>c
<00><><00>|
s t<00>f}
|jdd} |5|j|
||||||<07><02>} |<03>| D<00> cgc]} t| |<03><00><02>} } |j | <09>\}}}|j d<03>rdnt jj|<0E>}|jt j<00>d}|rP|j<00>D<00><13>cic]\}}|j d<05>s||<14><02>}}}| jt|d<06><07><00>|j|| |j<00>|||<11><08>g} | D]}|j!| <0C>} <0C>g}|j"}|j$}|j&}| D]} ||| |<1A><00><00>|j(j"}t+j,||j.d <09>
<EFBFBD>D]
}||<1C><00>  ddd<01>ycc} wcc}}w#1swYyxYw) aXLog rich content to the terminal.
Args:
objects (positional args): Objects to log to the terminal.
sep (str, optional): String to write between print data. Defaults to " ".
end (str, optional): String to write at end of print data. Defaults to "\\n".
style (Union[str, Style], optional): A style to apply to output. Defaults to None.
justify (str, optional): One of "left", "right", "center", or "full". Defaults to ``None``.
emoji (Optional[bool], optional): Enable emoji code, or ``None`` to use console default. Defaults to None.
markup (Optional[bool], optional): Enable markup, or ``None`` to use console default. Defaults to None.
highlight (Optional[bool], optional): Enable automatic highlighting, or ``None`` to use console default. Defaults to None.
log_locals (bool, optional): Boolean to enable logging of locals where ``log()``
was called. Defaults to False.
_stack_offset (int, optional): Offset of caller from end of call stack. Defaults to 1.
Nr9<00><<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>__z [i]locals)r)rO<00>path<74>line_no<6E> link_pathFr^)r<>r}rFrEr<>r<>r#r<><00>abspathr<68>r;<00>itemsr<73>r@rtrTr4rr7r<>r<>rBrrk)r<>r;r<>r<>ryrMr}r|r<>r<>r:rcr<>rr<>r<><00>localsr<73>r<><00>keyr<79><00>
locals_mapr<EFBFBD>rdrr7r rhr<>s rd<00>logz Console.log<6F>s<00><00>8<17><1E>y<EFBFBD>l<EFBFBD>G<EFBFBD><1B>)<29>)<29>!<21>,<2C> <0C> <11>. $<24><1E>3<>3<><17><13><13><1F><1B><1D>#<23>4<><0E>K<EFBFBD><15> <20>KV<4B>W<>Z<EFBFBD>v<EFBFBD>j<EFBFBD>%<25>8<>W<> <0B>W<>(,<2C>(?<3F>(?<3F> <0A>(N<> %<25>H<EFBFBD>g<EFBFBD>v<EFBFBD> (<28> 3<> 3<>C<EFBFBD> 8<><04>b<EFBFBD>g<EFBFBD>g<EFBFBD>o<EFBFBD>o<EFBFBD>h<EFBFBD>>W<>I<EFBFBD><1B>&<26>&<26>r<EFBFBD>v<EFBFBD>v<EFBFBD>.<2E>r<EFBFBD>2<>D<EFBFBD><19>'-<2D>l<EFBFBD>l<EFBFBD>n<EFBFBD><12>"<22><03>U<EFBFBD><1E>><3E>><3E>$<24>/<2F><18><15>J<EFBFBD><12>
<EFBFBD><12>
<1C>"<22>"<22><<3C>
<EFBFBD>+<2B>#N<>O<><15> <20> <20><18><1F>!<21>.<2E>.<2E>0<><1D>#<23>'<27> !<21><12> <0E>K<EFBFBD>%<25> D<01><04>"<22>6<>6<>{<7B>C<> <0B> D<01>*,<2C>L<EFBFBD>!<21>(<28>(<28>F<EFBFBD><19>[<5B>[<5B>F<EFBFBD>!<21>\<5C>\<5C>N<EFBFBD>)<29> ;<3B>
<EFBFBD><16>v<EFBFBD>j<EFBFBD>.<2E>9<>:<3A> ;<3B> <20>L<EFBFBD>L<EFBFBD>/<2F>/<2F>M<EFBFBD><1F>4<>4<><1C>d<EFBFBD>j<EFBFBD>j<EFBFBD>e<EFBFBD><0E> $<24><04><1E>d<EFBFBD>#<23> $<24>W. $<24>. $<24><>X<01><> <12>#. $<24>. $<24>s*<00>G"<03>G<06>BG"<03>G<08>/CG"<03> G"<03>"G+c<00><><00>d|_tjtjtj<00>}tj
|t jj<00><00>td<02><00>)alThis function is called when a `BrokenPipeError` is raised.
This can occur when piping Textual output in Linux and macOS.
The default implementation is to exit the app, but you could implement
this method in a subclass to change the behavior.
See https://docs.python.org/3/library/signal.html#note-on-sigpipe for details.
Tr%)
rIr#<00>open<65>devnull<6C>O_WRONLY<4C>dup2r<32>r<><00>fileno<6E>
SystemExit)r<>r<>s rd<00>on_broken_pipezConsole.on_broken_pipe<70>sH<00><00><1A><04>
<EFBFBD><14>'<27>'<27>"<22>*<2A>*<2A>b<EFBFBD>k<EFBFBD>k<EFBFBD>2<><07>
<EFBFBD><07><07><07><13><1A><1A>*<2A>*<2A>,<2C>-<2D><18><11>m<EFBFBD>rcc<00><><00>|jr|jdd<01>=y |j<00>y#t$r|j <00>YywxYw)aQCheck if the buffer may be rendered. Render it if it can (e.g. Console.quiet is False)
Rendering is supported on Windows, Unix and Jupyter environments. For
legacy Windows consoles, the win32 API is called directly.
This method will also record what it renders if recording is enabled via Console.record.
N)rIr<><00> _write_buffer<65>BrokenPipeErrorr<72>r<>s rdr<>zConsole._check_buffer<65>sE<00><00> <10>:<3A>:<3A><14> <0C> <0C>Q<EFBFBD><0F> <12> "<22> <10> <1E> <1E> <20><><1E> "<22> <10> <1F> <1F> !<21> "<22>s<00>/<00>A <03>
A c <00>P<00>|j5|jrI|js=|j5|jj |j dd<00>ddd<01>|jdk(<00>rG|jrFddlm }||j |j|j dd<00><00>|j dd<01>=<00>n<>t<00>r<>d}|jrt|j<00>}|<03>|tv}|rlddlm}ddlm}|j dd}|j(r*|j*rt-t/j0|<06><00>}||||j<00><00><00>n*|j|j dd<00>}|jj2}d} t5|<07>| kr ||<07>n<>g}
|
j6} d} |j9d <09>D]T} | t5| <0A>z| kDr+|
r)|d
j;|
<EFBFBD><00>|
j=<00>d} | | <0A>| t5| <0A>z } <0C>V|
r'|d
j;|
<EFBFBD><00>|
j=<00>n:|j|j dd<00>} |jj3|<07>|jjC<00>|j dd<01>=ddd<01>y#1swY<00><02>jxYw#t>$r}|j@<00>d <0B>|_ <00>d}~wwxYw#t>$r}|j@<00>d <0B>|_ <00>d}~wwxYw#1swYyxYw) z$Write the buffer to the output file.Nrr%)<01>displayF)<01>LegacyWindowsTerm)<01>legacy_windows_renderi Tr<54>zG
*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***)"r<>rLr<>ryr|rr<>rc<00>jupyterr<72>r<>r;rsr+rHr<><00>rich._win32_consoler<65><00>rich._windows_rendererr<72>rJrorrB<00> remove_color<6F>writer<65>r<>rarAr<><00>UnicodeEncodeError<6F>reason<6F>flush)r<>r<><00>use_legacy_windows_renderr<72>r<>r<>r<>r&r<><00> MAX_WRITE<54>batch<63> batch_appendrrr<>r8s rdr<>zConsole._write_buffer<65>s<><00><00><12>Z<EFBFBD>Z<EFBFBD>D (<28><13>{<7B>{<7B>4<EFBFBD>#5<>#5<><19>-<2D>-<2D>@<01><18>'<27>'<27>.<2E>.<2E>t<EFBFBD>|<7C>|<7C>A<EFBFBD><EFBFBD>?<3F>@<01><14>!<21>!<21>Q<EFBFBD>&<26><17>?<3F>?<3F>0<><1B>D<EFBFBD>L<EFBFBD>L<EFBFBD>$<24>*=<3D>*=<3D>d<EFBFBD>l<EFBFBD>l<EFBFBD>1<EFBFBD>o<EFBFBD>*N<>O<><1C> <0C> <0C>Q<EFBFBD><0F><1E>49<34>1<><1F>.<2E>.<2E>%/<2F><04> <09> <09>%:<3A>F<EFBFBD>%<25>1<>$*<2A>.A<>$A<>!:<3A>5<>M<>T<>%)<29>\<5C>\<5C>!<21>_<EFBFBD>F<EFBFBD>#<23>}<7D>}<7D><14>1C<31>1C<31>)-<2D>g<EFBFBD>.B<>.B<>6<EFBFBD>.J<>)K<><06>1<>&<26>:K<>D<EFBFBD>I<EFBFBD>I<EFBFBD>:V<>W<>$(<28>#6<>#6<>t<EFBFBD>|<7C>|<7C>A<EFBFBD><EFBFBD>#G<>D<EFBFBD>%)<29>I<EFBFBD>I<EFBFBD>O<EFBFBD>O<EFBFBD>E<EFBFBD>(6<>I<EFBFBD>&<26>#&<26>t<EFBFBD>9<EFBFBD> <09>#9<>$)<29>$<24>K<EFBFBD>79<37>E<EFBFBD>38<33><<3C><<3C>L<EFBFBD>+,<2C>D<EFBFBD>04<30><0F><0F><04>0E<30>%:<3A><04>+/<2F>#<23>d<EFBFBD>)<29>+;<3B>i<EFBFBD>+G<>E<EFBFBD>,1<>"<22>'<27>'<27>%<25>.<2E>,A<>,1<>K<EFBFBD>K<EFBFBD>M<EFBFBD>34<33>D<EFBFBD>(4<>T<EFBFBD>(:<3A>(,<2C><03>D<EFBFBD> <09>(9<><04> %:<3A>(-<2D>(-<2D>b<EFBFBD>g<EFBFBD>g<EFBFBD>e<EFBFBD>n<EFBFBD>(=<3D>(-<2D> <0B> <0B> <0A><>
$<24>2<>2<>4<EFBFBD><<3C><<3C><01>?<3F>C<><04>"<22> <20>I<EFBFBD>I<EFBFBD>O<EFBFBD>O<EFBFBD>D<EFBFBD>1<>
<19>I<EFBFBD>I<EFBFBD>O<EFBFBD>O<EFBFBD>%<25><1C> <0C> <0C>Q<EFBFBD><0F>ID (<28>D (<28>@<01>@<01><>l$6<>&<26>27<32>,<2C>,<2C><1E>@H<02>0I<02><05> <0C> %<25><>&<26><> 2<>"<22>.3<EFBFBD>l<EFBFBD>l<EFBFBD>^<5E><D<02>,E<02>E<EFBFBD>L<EFBFBD>!<21><>"<22><>D (<28>D (<28>sl<00>%L<03>)K<05>EL<03>B8K<02>L<03>6K6<02>)L<03>K <09>L<03> K3<05>K.<05>.K3<05>3L<03>6 L<05>?L<05>L<05>L<03>L%r<>c<00>><00>g}|j}|j}|j}|j }|jr|rt j |<01>}|D]0\}}} |r||j|||<05><01><00><00>$|r| r<01>)||<07><00>2dj|<02>}
|
S)z)Render buffered output, and clear buffer.)rBrsr<>) r<>rorsrvrJrBr<>r7rA) r<>r<><00>outputr<74>rBrs<00> not_terminalr&r<>r<><00>rendereds rdr<>zConsole._render_bufferGs<><00><00><1E><06><17><1D><1D><06><1B>)<29>)<29> <0C><1D>,<2C>,<2C><0E><1F>+<2B>+<2B>+<2B> <0C> <0F>=<3D>=<3D>\<5C><1C>)<29>)<29>&<26>1<>F<EFBFBD>$*<2A>
<1D> <20>D<EFBFBD>%<25><17><14><16><19>L<EFBFBD>L<EFBFBD><1C>%1<>'5<>!<21><16><12>#<23>w<EFBFBD><16>t<EFBFBD> <0C>
<1D><16>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F><08><17>rc)r}rM<00>password<72>stream<61>promptr<74>r<>c<00><><00>|r|j|||d<01><02>|rtd|<05><03>}|S|r|j<00>}|St<00>}|S)a5Displays a prompt and waits for input from the user. The prompt may contain color / style.
It works in the same way as Python's builtin :func:`input` function and provides elaborate line editing and history features if Python's builtin :mod:`readline` module is previously loaded.
Args:
prompt (Union[str, Text]): Text to render in the prompt.
markup (bool, optional): Enable console markup (requires a str prompt). Defaults to True.
emoji (bool, optional): Enable emoji (requires a str prompt). Defaults to True.
password: (bool, optional): Hide typed text. Defaults to False.
stream: (TextIO, optional): Optional file to read input from (rather than stdin). Defaults to None.
Returns:
str: Text read from stdin.
r<>)r}rMr<>)r<>)rr <00>readline<6E>input)r<>r<>r}rMr<>r<><00>results rdr<>z Console.input_sW<00><00>. <12> <10>J<EFBFBD>J<EFBFBD>v<EFBFBD>f<EFBFBD>E<EFBFBD>r<EFBFBD>J<EFBFBD> B<> <13><1C>R<EFBFBD><06>/<2F>F<EFBFBD> <16> <0A> <16><1F><1F><1F>*<2A><06><16> <0A><1F><17><06><15> rc<00>r<>r<>r<>c<00> <00>|jsJd<01><00>|j5|r#djd<03>|jD<00><00>}n"djd<04>|jD<00><00>}|r|jdd<05>=ddd<05>|S#1swYSxYw)a<>Generate text from console contents (requires record=True argument in constructor).
Args:
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
styles (bool, optional): If ``True``, ansi escape codes will be included. ``False`` for plain text.
Defaults to ``False``.
Returns:
str: String containing console contents.
<20>ITo export console contents set record=True in the constructor or instancer<65>c3<00>NK<00>|]\}}}|r|j|<01>n|<01><01><00>y<00>wr<>r6)rOr&r<><00>_s rdrQz&Console.export_text.<locals>.<genexpr><3E>s.<00><00><><00><12>&<26><04>e<EFBFBD>Q<EFBFBD>,1<>U<EFBFBD>\<5C>\<5C>$<24>'<27>d<EFBFBD>:<3A><12>s<00>#%c3<00>LK<00>|]}|js|j<00><01><00>y<00>wr<>)r<>r&r]s rdrQz&Console.export_text.<locals>.<genexpr><3E>s#<00><00><><00><12><1F>"<22>?<3F>?<3F><1C>L<EFBFBD>L<EFBFBD><12>s<00>"$N)rLryrAr|)r<>r<>r<>r&s rd<00> export_textzConsole.export_text<78>s<><00><00> <11>K<EFBFBD>K<EFBFBD> W<01> V<> W<01> <17><12> %<25> %<25> +<2B><15><19>w<EFBFBD>w<EFBFBD><12>*.<2E>*=<3D>*=<3D><12><12><04>
<1A>w<EFBFBD>w<EFBFBD><12>#'<27>#6<>#6<><12><12><04>
<15><18>'<27>'<27><01>*<2A> +<2B><14> <0B> +<2B><14> <0B>s <00>AB<03>B r<>c<00><><00>|j||<03><01>}t|dd<03><04>5}|j|<04>ddd<05>y#1swYyxYw)a<>Generate text from console and save to a given location (requires record=True argument in constructor).
Args:
path (str): Path to write text files.
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
styles (bool, optional): If ``True``, ansi style codes will be included. ``False`` for plain text.
Defaults to ``False``.
r<><00>wr<77><00>rwN)r<>r<>r<>)r<>r<>r<>r<>r&<00>
write_files rd<00> save_textzConsole.save_text<78>sJ<00><00><14><1F><1F>e<EFBFBD>F<EFBFBD><1F>;<3B><04> <11>$<24><03>g<EFBFBD> .<2E> #<23>*<2A> <16> <1C> <1C>T<EFBFBD> "<22> #<23> #<23> #<23>s <00>=<03>A<07>r<>r<><00> code_format<61> inline_stylesr<73>r<>c <00>~<00>|jsJd<01><00>g}|j}|xst}d}|<03>tn|} |j5|r<>t j t j|j<00><00>D]X\}
} } t|
<EFBFBD>}
| r=| j|<07>} | jrd| j<00>d|
<EFBFBD>d<06>}
| r d| <0A>d|
<EFBFBD>d<08>n|
}
||
<EFBFBD><00>Zn<>i}t j t j|j<00><00>D]v\}
} } t|
<EFBFBD>}
| r[| j|<07>} |j| t|<0E>d z<00>}| jrd
|<0F>d | j<00>d|
<EFBFBD>d<06>}
n d |<0F>d|
<EFBFBD>d<08>}
||
<EFBFBD><00>xg}|j}|j<00>D]\}}|s<01> |d |<0F>d|<12>d<0F><05><00>dj|<10>}| j!dj|<05>||j"j$|j&j$<00><11>}|r|jdd<03>=ddd<03>|S#1swYSxYw)aIGenerate HTML from console contents (requires record=True argument in constructor).
Args:
theme (TerminalTheme, optional): TerminalTheme object containing console colors.
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
code_format (str, optional): Format string to render HTML. In addition to '{foreground}',
'{background}', and '{code}', should contain '{stylesheet}' if inline_styles is ``False``.
inline_styles (bool, optional): If ``True`` styles will be inlined in to spans, which makes files
larger but easier to cut and paste markup. If ``False``, styles will be embedded in a style tag.
Defaults to False.
Returns:
str: String containing console contents as HTML.
r<>r<>Nz <a href="z">z</a>z <span style="z</span>r%z <a class="rz" href="z<span class="rz.rz {<7B>}r<>)<04>code<64>
stylesheet<EFBFBD>
foreground<EFBFBD>
background)rLr<>rFr)ryrB<00>filter_control<6F>simplifyr|r
<00>get_html_styler4<00>
setdefaultr<EFBFBD>r<>rA<00>format<61>foreground_color<6F>hex<65>background_color)r<>r<>r<>r<>r<><00> fragmentsr<73><00>_themer<65><00>render_code_formatr&r<>r<>rKr<><00> style_number<65>stylesheet_rules<65>stylesheet_append<6E>
style_rule<EFBFBD> rendered_codes rd<00> export_htmlzConsole.export_html<6D>ss<00><00>. <11>K<EFBFBD>K<EFBFBD> W<01> V<> W<01> <17>!<21> <09><1A>!<21>!<21><06><16>0<>0<><06><17>
<EFBFBD>4?<3F>4G<34>0<>[<5B><1A> <11> %<25> %<25>( +<2B><1C>&-<2D>&<<3C>&<<3C><1B>$<24>$<24>T<EFBFBD>%8<>%8<>9<>'<12> !<21>N<EFBFBD>D<EFBFBD>%<25><11>"<22>$<24><<3C>D<EFBFBD><1C>$<24>3<>3<>F<EFBFBD>;<3B><04> <20>:<3A>:<3A>%.<2E>u<EFBFBD>z<EFBFBD>z<EFBFBD>l<EFBFBD>"<22>T<EFBFBD>F<EFBFBD>$<24>#G<>D<EFBFBD>HL<48><1D>t<EFBFBD>f<EFBFBD>B<EFBFBD>t<EFBFBD>f<EFBFBD>G<EFBFBD>D<>RV<52><04><1A>4<EFBFBD>L<EFBFBD> !<21>*,<2C><06>&-<2D>&<<3C>&<<3C><1B>$<24>$<24>T<EFBFBD>%8<>%8<>9<>'<12> !<21>N<EFBFBD>D<EFBFBD>%<25><11>"<22>$<24><<3C>D<EFBFBD><1C>$<24>3<>3<>F<EFBFBD>;<3B><04>'-<2D>'8<>'8<><14>s<EFBFBD>6<EFBFBD>{<7B>Q<EFBFBD><EFBFBD>'O<> <0C> <20>:<3A>:<3A>%0<><1C><0E>h<EFBFBD>u<EFBFBD>z<EFBFBD>z<EFBFBD>l<EFBFBD>RT<52>UY<55>TZ<54>Z^<5E>#_<>D<EFBFBD>%3<>L<EFBFBD>><3E><12>D<EFBFBD>6<EFBFBD><17>#Q<>D<EFBFBD><1A>4<EFBFBD>L<EFBFBD> !<21>/1<> <20>$4<>$;<3B>$;<3B>!<21>06<30> <0C> <0C><0E>P<01>,<2C>J<EFBFBD> <0C>!<21>)<29>B<EFBFBD>|<7C>n<EFBFBD>C<EFBFBD>
<EFBFBD>|<7C>2<EFBFBD>*N<>O<>P<01>"<22>Y<EFBFBD>Y<EFBFBD>'7<>8<>
<EFBFBD>.<2E>5<>5<><17>W<EFBFBD>W<EFBFBD>Y<EFBFBD>'<27>%<25>!<21>2<>2<>6<>6<>!<21>2<>2<>6<>6<> 6<><0E>M<EFBFBD> <15><18>'<27>'<27><01>*<2A>Q( +<2B>R<1D><1C>S( +<2B>R<1D><1C>s<00>E$H2<03>)A?H2<03>2H<c<00><><00>|j||||<05><01>}t|dd<03><04>5}|j|<06>ddd<05>y#1swYyxYw)a@Generate HTML from console contents and write to a file (requires record=True argument in constructor).
Args:
path (str): Path to write html file.
theme (TerminalTheme, optional): TerminalTheme object containing console colors.
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``.
code_format (str, optional): Format string to render HTML. In addition to '{foreground}',
'{background}', and '{code}', should contain '{stylesheet}' if inline_styles is ``False``.
inline_styles (bool, optional): If ``True`` styles will be inlined in to spans, which makes files
larger but easier to cut and paste markup. If ``False``, styles will be embedded in a style tag.
Defaults to False.
r<>r<>r<>r<>N)r<>r<>r<>)r<>r<>r<>r<>r<>r<><00>htmlr<6C>s rd<00> save_htmlzConsole.save_html<6D>sX<00><00>,<14><1F><1F><17><17>#<23>'<27>  <20>
<EFBFBD><04> <12>$<24><03>g<EFBFBD> .<2E> #<23>*<2A> <16> <1C> <1C>T<EFBFBD> "<22> #<23> #<23> #<23>s <00>?<03>A<07>Richg<68><67>Q<EFBFBD><1E><>?<3F>rr<>r<>r<><00>font_aspect_ratio<69> unique_idr<64>r<>c<00><><00><06>3<EFBFBD>4<EFBFBD>5<EFBFBD>6<EFBFBD>7<EFBFBD>8<EFBFBD>ddlm}i<00>7dtdtf<04>3<EFBFBD>7fd<05> }|xst<00>3|j
<00>8d} | |z<00>4| dz<00>5d}
d} d} d} d }d
}d
}d
}||z}||z}| | z}|
| z}g}g}i}d}d tdtfd <0C>} d2dtdt tdtdtfd<11><05>6|j5ttj|j<00><00>}|r|jj<00>d d d <0A><00><06>Zdttjdj!d<14>D<00><00>j#dd<16>|j#dd<16>z<00><00>z<00>d}t%tj&<1B>8<EFBFBD><17><00>D<00>]<5D>\}}d}|D<00>]<5D>\}} }!| xs
t<00>} || <20>}"|"|vr
|||"<|dz }d||"<00><00>}#| j(rJd}$| j*<00><16>3j,j.n$| j*j1<00>3<EFBFBD>j.}%nf| j2}&|&d uxr |&j4 }$| j2<00><16>3j6j.n$| j2j1<00>3<EFBFBD>j.}%||<1F>}'|$r-|j9<00>6d|%|<1E>4z|<1C>5zdz<00>4|'z<00>5dzd<1D><1E><00>|dt;|<1F>zk7rE|j9<00>6d ||<1F><00><06>d |#<23><00>|<1E>4z|<1C>5z| z<00>4t;|<1F>zd!<21><06>d"|<1C>d#<23><05>$<24><00>|||<1F>z }<1E><01><><00><01><>t=|<1C>D<00>(cgc]
}(|(<28>5zdz<00><02> })}(d%j!<00>4<EFBFBD>5<EFBFBD>6<EFBFBD><06>8fd&<26>t%|)<29>D<00><00>}*d%j!<00>fd'<27>|j?<00>D<00><00>}+dj!|<16>},dj!|<17>}-tA<00>8<EFBFBD>4z|z<00>}.|dz<00>5z|z}/<00>6d<1A>3j6j.d(d)| |
|.|/d
<EFBFBD>*<2A> }0<>3j,j.}1|r$|0<00>6d ||<01><00><06>d+<2B>|1d,|.d-z|
| zd.z<00>/<2F>z }0|0d0z }0|jC<00><06>4| <09>5<EFBFBD>4<EFBFBD>8zdz
|dz<00>5zdz
|.|z|/|z| |z|
|z|+|0|,|-|*<2A>1<EFBFBD>}2|2S#1swY<00><03>oxYwcc}(w)3a
Generate an SVG from the console contents (requires record=True in Console constructor).
Args:
title (str, optional): The title of the tab in the output image
theme (TerminalTheme, optional): The ``TerminalTheme`` object to use to style the terminal
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``
code_format (str, optional): Format string used to generate the SVG. Rich will inject a number of variables
into the string in order to form the final SVG output. The default template used and the variables
injected by Rich can be found by inspecting the ``console.CONSOLE_SVG_FORMAT`` variable.
font_aspect_ratio (float, optional): The width to height ratio of the font used in the ``code_format``
string. Defaults to 0.61, which is the width to height ratio of Fira Code (the default font).
If you aren't specifying a different font inside ``code_format``, you probably don't need this.
unique_id (str, optional): unique id that is used as the prefix for various elements (CSS styles, node
ids). If not set, this defaults to a computed value based on the recorded content.
r)<01>cell_lenr<6E>r~c<00><><00><02>|<00>vr<05>|Sg}|j<00>|jjr <0C>jn|jj<00><05>}|j<00>|jjr <0C>j
n|jj<00><05>}|j r||}}|jr t||d<01>}|jd|j<00><00><02>|jr|jd<03>|jr|jd<04>|jr|jd<05>|jr|jd<06>dj|<01>}|<04>|<|S)z%Convert a Style to CSS rules for SVG.g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?zfill: zfont-weight: boldzfont-style: italic;ztext-decoration: underline;ztext-decoration: line-through;<3B>;)<10>color<6F>
is_defaultr<EFBFBD><00> get_truecolor<6F>bgcolorr<72><00>reverse<73>dimr1r<>r<><00>bold<6C>italic<69> underline<6E>strikerA)r<><00> css_rulesr<73>r<><00>cssr<73><00> style_caches <20><>rd<00> get_svg_stylez)Console.export_svg.<locals>.get_svg_style8 sD<00><><00><14> <0B>#<23>"<22>5<EFBFBD>)<29>)<29><1A>I<EFBFBD><1A>K<EFBFBD>K<EFBFBD>'<27>5<EFBFBD>;<3B>;<3B>+A<>+A<><17>'<27>'<27><1A>[<5B>[<5B>.<2E>.<2E>v<EFBFBD>6<> <12><1A>M<EFBFBD>M<EFBFBD>)<29>U<EFBFBD>]<5D>]<5D>-E<>-E<><17>'<27>'<27><1A>]<5D>]<5D>0<>0<><16>8<> <14>
<15>}<7D>}<7D>!(<28>%<25>w<EFBFBD><05><14>y<EFBFBD>y<EFBFBD>!<21>%<25><17>#<23>6<><05> <15> <1C> <1C>v<EFBFBD>e<EFBFBD>i<EFBFBD>i<EFBFBD>[<5B>1<> 2<><14>z<EFBFBD>z<EFBFBD><19> <20> <20>!4<>5<><14>|<7C>|<7C><19> <20> <20>!6<>7<><14><EFBFBD><EFBFBD><19> <20> <20>!><3E>?<3F><14>|<7C>|<7C><19> <20> <20>!A<>B<><15>(<28>(<28>9<EFBFBD>%<25>C<EFBFBD>!$<24>K<EFBFBD><05> <1E><16>Jrc<00>g<><67>Q<EFBFBD><1E><>?r%<00>(rAr&c<00>8<00>t|<00>jdd<02>S)z.HTML escape text and replace spaces with nbsp.r<>z&#160;)r
<00>replacer\s rd<00> escape_textz'Console.export_svg.<locals>.escape_textt s<00><00><19>$<24><<3C>'<27>'<27><03>X<EFBFBD>6<> 6rcNr1r<><00>attribsc <00><><00><04>dtdtfd<03><04>dj<00>fd<05>|j<00>D<00><00>}|rd|<00>d|<03>d|<01>d|<00>d<07> Sd|<00>d|<03>d <09>S)
z.Make a tag from name, content, and attributes.r<>r~c<00>P<00>t|t<00>r t|d<01>St|<00>S)N<>g)r<><00>floatr<74>r<>)r<>s rd<00> stringifyz7Console.export_svg.<locals>.make_tag.<locals>.stringify} s#<00><00><1D>e<EFBFBD>e<EFBFBD>-<2D>!<21>%<25><13>-<2D>-<2D><1A>5<EFBFBD>z<EFBFBD>!rcr<>c3<00>~<00>K<00>|]4\}}|jd<00>jdd<01><00>d<00>|<02><00>d<03><04><01><00>6y<04>w)r<>r<>z="<22>"N)<02>lstripr )rO<00>k<>vrs <20>rdrQz7Console.export_svg.<locals>.make_tag.<locals>.<genexpr><3E> sD<00><><00><><00>#<0E><18>A<EFBFBD>q<EFBFBD><15>8<EFBFBD>8<EFBFBD>C<EFBFBD>=<3D>(<28>(<28><13>c<EFBFBD>2<>3<>2<EFBFBD>i<EFBFBD><01>l<EFBFBD>^<5E>1<EFBFBD>E<>#<0E>s<00>:=r<>r<>z</z/>)<04>objectr<74>rAr<>)r1r<>r<00> tag_attribsrs @rd<00>make_tagz$Console.export_svg.<locals>.make_tagx s|<00><><00>
 "<22><16> "<22>C<EFBFBD> "<22>
<1E>(<28>(<28>#<0E>#<23>M<EFBFBD>M<EFBFBD>O<EFBFBD>#<0E><0E>K<EFBFBD> <1B><14>D<EFBFBD>6<EFBFBD><11>;<3B>-<2D>q<EFBFBD><17> <09><12>D<EFBFBD>6<EFBFBD><11>;<3B> <0E><19><14><06>a<EFBFBD> <0B>}<7D>B<EFBFBD>/<2F> rcz terminal-r<>c3<00>2K<00>|]}t|<01><00><01><00>y<00>wr<>)<01>reprr]s rdrQz%Console.export_svg.<locals>.<genexpr><3E> s<00><00><><00>C<>w<EFBFBD>T<EFBFBD>'<27>]<5D>C<>rVr<>r\)<01>length<74>rT<72>rectg<00>?<3F><00>?<3F>
crispEdges)<06>fillr<6C>r<>rkrl<00>shape_renderingr<67>r<>zurl(#<23>-line-<2D>))<05>_classr<73>r<><00>
textLength<EFBFBD> clip_pathr<68>c3<00>^<00>K<00>|]$\}}d<00><06>d|<01>d<00>dd|<02><03>z<00>dz<00><06><00>d<07><07><01><00>&y<08>w) z<clipPath id="r&z">
r!rr")r<>r<>rkrlz
</clipPath>Nrb)rOr<>r<><00>
char_width<EFBFBD> line_heightrr<>rks <20><><EFBFBD><EFBFBD><EFBFBD>rdrQz%Console.export_svg.<locals>.<genexpr><3E> sW<00><><00><><00>
<EFBFBD> <20><07><16><1F>y<EFBFBD>k<EFBFBD><16><07>y<EFBFBD>9<05> <0A>f<EFBFBD><01>V<EFBFBD>:<3A><05>+=<3D>k<EFBFBD>TX<54>FX<46>Y<>Z<>[<18> <1B>
<EFBFBD>s<00>*-c3<00><<00>K<00>|]\}}d<00><03>d|<02>d|<01>d<03><07><01><00>y<04>w)<05>.z-rz { z }Nrb)rOr<00>rule_nor<6F>s <20>rdrQz%Console.export_svg.<locals>.<genexpr><3E> s/<00><><00><><00>
<EFBFBD>7C<EFBFBD>s<EFBFBD>G<EFBFBD>a<EFBFBD> <09>{<7B>"<22>W<EFBFBD>I<EFBFBD>T<EFBFBD>#<23><15>c<EFBFBD> 2<>
<EFBFBD>s<00>zrgba(255,255,255,0.35)rb)r$<00>stroke<6B> stroke_widthr<68>r<>rkrl<00>rxz-title<6C>middlere<00>)r(r$<00> text_anchorr<72>r<>z<>
<g transform="translate(26,22)">
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
<circle cx="44" cy="0" r="7" fill="#28c840"/>
</g>
)r<>r,<00> char_heightr-<00>terminal_width<74>terminal_heightrkrl<00>
terminal_x<EFBFBD>
terminal_yr<EFBFBD><00>chrome<6D> backgrounds<64>matrixr<78>r<>)"<22>
rich.cellsr<73>rCr<>rGrkrrryrrBr<>r|r<><00>zlib<69>adler32rA<00>encoder<65>rrr<>r<>r<>r<>r<>r<>r<>r<>r<><00>ranger<65>r r<>)9r<39>rr<>r<>r<>r<>r<>r<>r r7<00>
margin_top<EFBFBD> margin_right<68> margin_bottom<6F> margin_left<66> padding_top<6F> padding_right<68>padding_bottom<6F> padding_left<66> padding_width<74>padding_height<68> margin_width<74> margin_height<68>text_backgrounds<64>
text_group<EFBFBD>classes<65>style_norr<>r<>r<>r<>r&r<>rP<00>rules<65>
class_name<EFBFBD>has_backgroundr<64>r<><00> text_lengthr<68><00> line_offsetsr<73>r<>r=r>r8r9r<<00> title_color<6F>svgr<67>r,r-rrrks9 ` @@@@@@rd<00>
export_svgzConsole.export_svg sj<00><><00>6 (<28>(*<2A> <0B> <17><15> <17>3<EFBFBD> <17>B<17>*<2A>*<2A><06><14>
<EFBFBD>
<EFBFBD><05><18> <0B> <20>#4<>4<>
<EFBFBD>!<21>D<EFBFBD>(<28> <0B><16>
<EFBFBD><18> <0C><19> <0A><17> <0B><18> <0B><19> <0A><1A><0E><18> <0C>$<24>}<7D>4<> <0A>$<24>~<7E>5<><0E>"<22>\<5C>1<> <0C>"<22>]<5D>2<> <0A>&(<28><18> "<22>
<EFBFBD>"$<24><07><14><08> 7<>c<EFBFBD> 7<>c<EFBFBD> 7<>
15<31> <0E><15> <0E> (<28><13> <0A> <0E>AG<41> <0E> <10> <0E>(<12> %<25> %<25> ,<2C><1B>G<EFBFBD>2<>2<>4<EFBFBD>3F<33>3F<33>G<>H<>H<EFBFBD><14><14>#<23>#<23>)<29>)<29>+<2B> ,<2C>
<15> <1C>#<23>c<EFBFBD><14> <0C> <0C><17>W<EFBFBD>W<EFBFBD>C<>(<28>C<>C<>K<>K<><1F> <20><16><1C>l<EFBFBD>l<EFBFBD>7<EFBFBD>H<EFBFBD>5<> 6<><12>'<0E><0E>I<EFBFBD> <0E><01> <20><17>!=<3D>!=<3D>h<EFBFBD>u<EFBFBD>!U<>V<>4 $<24>G<EFBFBD>A<EFBFBD>t<EFBFBD><11>A<EFBFBD>)-<2D>2 $<24>%<25><04>e<EFBFBD>X<EFBFBD><1D>(<28><15><17><05>%<25>e<EFBFBD>,<2C><05><18><07>'<27>%-<2D>G<EFBFBD>E<EFBFBD>N<EFBFBD><1C><01>M<EFBFBD>H<EFBFBD> <20><17><15><1E> 0<>1<>
<EFBFBD><18>=<3D>=<3D>%)<29>N<EFBFBD>!<21>;<3B>;<3B>.<2E><1F>/<2F>/<2F>3<>3<>"<22>[<5B>[<5B>6<>6<>v<EFBFBD>><3E>B<>B<><1F> $<24>m<EFBFBD>m<EFBFBD>G<EFBFBD>%,<2C>D<EFBFBD>%8<>%S<><17>AS<41>AS<41>=S<>N<EFBFBD>!<21>=<3D>=<3D>0<><1F>/<2F>/<2F>3<>3<>"<22>]<5D>]<5D>8<>8<><16>@<40>D<>D<><1F> '<27>t<EFBFBD>n<EFBFBD> <0B>!<21>$<24>+<2B>+<2B> <20>"<22>!+<2B><1F>*<2A>n<EFBFBD><1F>+<2B>o<EFBFBD><03>3<>",<2C>{<7B>":<3A>#.<2E><14>#5<>,8<><1A>
<16><18>3<EFBFBD><13>T<EFBFBD><19>?<3F>*<2A><1E>%<25>%<25> <20>"<22>'<27><04>-<2D>&/<2F>[<5B><01>*<2A><1C>#><3E><1F>*<2A>n<EFBFBD><1F>+<2B>o<EFBFBD> <0B>;<3B>'1<>C<EFBFBD><04>I<EFBFBD>'=<3D>(-<2D>i<EFBFBD>[<5B><06>q<EFBFBD>c<EFBFBD><11>&C<><1A>
<16><12>X<EFBFBD>d<EFBFBD>^<5E>#<23><01>e2 $<24>4 $<24>lDI<01><11>8<EFBFBD>L<><07><07>+<2B>-<2D><03>3<>L<> <0C>L<><14> <09> <09>
<EFBFBD>$-<2D>\<5C>#:<3A> 
<EFBFBD>
<EFBFBD><05><16><19><19>
<EFBFBD>GN<EFBFBD>}<7D>}<7D><EFBFBD>
<EFBFBD>
<EFBFBD><06><19>g<EFBFBD>g<EFBFBD>.<2E>/<2F> <0B><13><17><17><1A>$<24><06><1D>e<EFBFBD>j<EFBFBD>0<>=<3D>@<40>A<><0E><1C>q<EFBFBD>5<EFBFBD>K<EFBFBD>/<2F>.<2E>@<40><0F><19> <12><17>(<28>(<28>,<2C>,<2C>+<2B><1C><19><18> <20>"<22><10>

<EFBFBD><06><1D>-<2D>-<2D>1<>1<> <0B> <10> <12>h<EFBFBD><16><1B>E<EFBFBD>"<22>#<23><1B>F<EFBFBD>+<2B> <20>$<24> <20>A<EFBFBD>%<25><1C>{<7B>*<2A>Q<EFBFBD>.<2E><0E> <0E>F<EFBFBD> <0F> <09> <0C><06><1A> <20> <20><1F>!<21>#<23>#<23>%<25><05>-<2D><01>1<><1E><11>U<EFBFBD>k<EFBFBD>1<>A<EFBFBD>5<> <20><<3C>/<2F>"<22>]<5D>2<>"<22>\<5C>1<>!<21>K<EFBFBD>/<2F><19><19>#<23><19><17>!<21>
<EFBFBD><03>"<13>
<EFBFBD>M ,<2C> ,<2C><>LMs<00>2AQ$<03>#Q1<04>$Q.c<00><><00>|j||||||<07><01>}t|dd<03><04>5} | j|<08>ddd<05>y#1swYyxYw)a7Generate an SVG file from the console contents (requires record=True in Console constructor).
Args:
path (str): The path to write the SVG to.
title (str, optional): The title of the tab in the output image
theme (TerminalTheme, optional): The ``TerminalTheme`` object to use to style the terminal
clear (bool, optional): Clear record buffer after exporting. Defaults to ``True``
code_format (str, optional): Format string used to generate the SVG. Rich will inject a number of variables
into the string in order to form the final SVG output. The default template used and the variables
injected by Rich can be found by inspecting the ``console.CONSOLE_SVG_FORMAT`` variable.
font_aspect_ratio (float, optional): The width to height ratio of the font used in the ``code_format``
string. Defaults to 0.61, which is the width to height ratio of Fira Code (the default font).
If you aren't specifying a different font inside ``code_format``, you probably don't need this.
unique_id (str, optional): unique id that is used as the prefix for various elements (CSS styles, node
ids). If not set, this defaults to a computed value based on the recorded content.
r<>r<>r<>r<>N)r[r<>r<>)
r<EFBFBD>r<>rr<>r<>r<>r<>r<>rZr<>s
rd<00>save_svgzConsole.save_svg
s\<00><00>6<13>o<EFBFBD>o<EFBFBD><17><17><17>#<23>/<2F><1F> <1E>
<EFBFBD><03><12>$<24><03>g<EFBFBD> .<2E> "<22>*<2A> <16> <1C> <1C>S<EFBFBD> !<21> "<22> "<22> "<22>s <00>A<03>A
rD)r~r<>r<>r<>r<>)TNr<4E>r)rr)r_r`rarmr#r<>r?rr<>ror5rrr<>rKrrnrDr3r!r,rrrr<>r<>r<>rH<00>setterrrBr<>r<>rLr<>r0rpr<>r<>r<>r<>r2r<>r<>r<>rr<>r<>r<>r<>r<>r<>r<>rBrwrvrwrqr<>rjrrrrkrlr<>r<>r<>r:r<>r<>r<>r<>rr<>rrrrr<>r8r rr7rCr%r<>r<>rVrr6r<>rFrJr/rKr2r<>rXrrvr?r|r{rr<><00> staticmethodr<64>r<>rrr<>r<>r<>r<>r<>r<>rr<>r<>r<>rHr<>r)r<>r*r[r]rbrcrdr<>r<>Ks<><00><00>!<08>F#%<25>*<2A>*<2A>H<EFBFBD>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD><1F>,<2C> <13>)-<2D>(,<2C>,0<><1F>!%<25><1C>"&<26><1B>#<23> $<24>%)<29>#'<27><19><1C><1B><1A>04<30><1E><1D><1D>:@<40>3B<33>3D<33>)-<2D><1D>9=<3D>26<32>04<30>AD$<24><1F> <13>E<> F<>
<EFBFBD>D$<24> !<21><14><0E> D$<24> <20><04>~<7E>D$<24>$<24>D<EFBFBD>><3E>D$<24><18>D$<24><18><05><EFBFBD>D$<24><15>D$<24><17>r<EFBFBD>#<23>w<EFBFBD><1F>D$<24><14>D$<24><18><03>}<7D>D$<24><19><13> <0A>D$<24> <18> <09>"<22>!D$<24>"<1B>4<EFBFBD>.<2E>#D$<24>$<16>%D$<24>&<15>'D$<24>(<15>)D$<24>*<14>+D$<24>, <20> <0C>-<2D>-D$<24>.<18>/D$<24>0<17>1D$<24>2<17>3D$<24>4<1F>s<EFBFBD>$6<>6<>7<>5D$<24>6<1E>/<2F>0<>7D$<24>8!<21><14><0E>9D$<24>:<17>;D$<24><<1F>x<EFBFBD><02>H<EFBFBD> <0C>5<>6<>=D$<24>><1B>8<EFBFBD>B<EFBFBD><05>I<EFBFBD>.<2E>/<2F>?D$<24>@<1B>7<EFBFBD>3<EFBFBD><03>8<EFBFBD>,<2C>-<2D>AD$<24>LF<01>#<23>F<01><0E><14>b<EFBFBD><13>g<EFBFBD><14><0E><14>
<EFBFBD>[<5B>[<5B><1E>R<EFBFBD><03>W<EFBFBD><1E><14><1E><11><1E><0E>*<2A><14>g<EFBFBD><1D>*<2A><0E>*<2A><0E>0<>s<EFBFBD>0<><0E>0<><13><19><19>1<>3<EFBFBD>1<>4<EFBFBD>1<><1A>1<><0E>/<2F>j<EFBFBD>/<2F><0E>/<2F> <20>h<EFBFBD>{<7B>&;<3B> <20>0 <20><1D>
.<2E>V<EFBFBD>.<2E><04>.<2E> #<23>
,<2C>Z<EFBFBD>,<2C>D<EFBFBD>,<2C>%<25>
<14>
<1C><13><1C><13><1C><13><1C><14><1C><1D> <1D>S<EFBFBD> <1D>;?<3F> =<3D><05> =<3D>4<EFBFBD> =<3D>4<EFBFBD> =<3D>&<26>:><3E>
2<>u<EFBFBD>
2<>$<24>
2<>,<2C>
2<><0E>
<18>h<EFBFBD>s<EFBFBD>m<EFBFBD>
<18><0E>
<18><0E>L<01>#<23>L<01><0E>L<01><0E>-<19>T<EFBFBD>-<19><0E>-<19>^<0E> ,<2C>$<24> ,<2C><0E> ,<2C><0E> 
<EFBFBD><1E> 
<EFBFBD><0E> 
<EFBFBD><0E>&
<EFBFBD>'<27>&
<EFBFBD><0E>&
<EFBFBD>P
<EFBFBD>[<5B>[<5B><1E>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD><1E><14><1E><11><1E><0E><1F>s<EFBFBD><1F><0E><1F> <0B>\<5C>\<5C><1C>3<EFBFBD><1C>4<EFBFBD><1C><12><1C><0E> <20><03> <20><0E> <20> <0C>]<5D>]<5D><1E>S<EFBFBD><1E>T<EFBFBD><1E><13><1E>%<25><17><17><17>$RW<01>K<01><1D>e<EFBFBD>_<EFBFBD>K<01>59<35>K<01>JN<4A>K<01> <15>K<01>.#<23>#<23>#<23>d<EFBFBD>#<23> *<2A>$<24> *<2A>$<24> *<2A><1E>#3<><1A>$(<28>!<21><1E>!<21><15> !<21>
!<21> !<21> <15> !<21>"<22>!<21>
<12>!<21>B <15><04> <15><04> <15><17>T<EFBFBD><17>T<EFBFBD><17>*<0E>#<23>t<EFBFBD>#<23><0E>#<23><15>c<EFBFBD><15>d<EFBFBD><15>BFJ<01> O<01><1F> O<01>/7<> <09>/B<> O<01> <18> O<01>RV<01><1B>(<28><1B>6><3E>~<7E>6N<36><1B> <14><1B>$OS<01>1@<01>(<28>1@<01>3;<3B>N<EFBFBD>3K<33>1@<01> <11>'<27> <1A>1@<01>l-1<>><19>
"&<26><18><1F>><19>"<22>><19><1A>.<2E>)<29>><19>
<18><05><EFBFBD> ><19> <12> ><19><18>><19>
<0E>d<EFBFBD>7<EFBFBD>m<EFBFBD> <1C>><19>H$&<26>+/<2F>-1<> $<24>!%<25>$(<28>15<31>;<19><11>;<19><15>S<EFBFBD>%<25>Z<EFBFBD> <20> ;<19>
<1A>-<2D>(<28> ;<19> <1B>><3E>*<2A> ;<19><18><04>~<7E>;<19><19><14><0E>;<19><1C>D<EFBFBD>><3E>;<19><1E>o<EFBFBD>.<2E>;<19>
<10>;<19>|RV<01><18><19>#<23>u<EFBFBD>*<2A>%<25><18>3;<3B>E<EFBFBD>%<25><13>*<2A><M<>3N<33><18> <0E><18>H,0<> $<24>!%<25>$(<28>M<1B><19>#<23><1D>M<1B><11>M<1B><11> M<1B> <1A>-<2D>(<28> M<1B><18><04>~<7E>M<1B><19><14><0E>M<1B><1C>D<EFBFBD>><3E>M<1B>
<0E><1F> <20>M<1B>b<1D><19> <20>#.<2E>%<25> <19><17><19><18> <19>
<15>S<EFBFBD>%<25>Z<EFBFBD> <20> <19> <1B> <19>
<0E><19>*N<01><07>N<01>D<EFBFBD>N<01><17><17>-1<>$(<28> 
<EFBFBD><15>
<EFBFBD><11>
<EFBFBD><11> 
<EFBFBD>
<18><05>c<EFBFBD>5<EFBFBD>j<EFBFBD>)<29>*<2A> 
<EFBFBD> <1C>D<EFBFBD>><3E> 
<EFBFBD>
<0E>
<EFBFBD>F<17><17>-1<>+/<2F>-1<>"&<26> $<24>!%<25>$(<28>#<23> $<24><19>$(<28>$<24>!e2<><15>e2<><11>e2<><11> e2<>
<18><05>c<EFBFBD>5<EFBFBD>j<EFBFBD>)<29>*<2A> e2<> <1A>-<2D>(<28> e2<><1B>><3E>*<2A>e2<><1A>$<24><1E>e2<><18><04>~<7E>e2<><19><14><0E>e2<><1C>D<EFBFBD>><3E>e2<><18><03>}<7D>e2<><19><13> <0A>e2<><13>e2<><1C>D<EFBFBD>><3E>e2<> <1D>!e2<>"
<0E>#e2<>R#<23>;4<><19>()<29><1E><1F>"<22>#<23><1E>26<32><1F>;4<><16>s<EFBFBD>m<EFBFBD>;4<><12> ;4<>
<16>d<EFBFBD>C<EFBFBD><13>n<EFBFBD>%<25> ;4<> <18> ;4<><18>;4<><1B>;4<><1D>;4<><18>;4<><1A>(<28>C<EFBFBD>5<EFBFBD>#<23>:<3A>.<2E>/<2F>;4<><18>;4<>
<0E>;4<>B$(<28>,0<> .<2E>"<22> .<2E><19><16> <20> .<2E>
<1A>.<2E>)<29> .<2E>
<0E> .<2E>F@A<01><1D><19>$<24>w<EFBFBD>-<2D>(<28><1D>-0<><1D>9<<3C><1D> <0A><1D>. #<23><1C>#<23><1F>!<21>57<35><1D>!<1E><18><03>}<7D>!<1E><19> !<1E>
<18><03>}<7D> !<1E> <18> !<1E><1A>!<1E><1B>5<EFBFBD><13>j<EFBFBD><1F>1<>2<>!<1E><18>!<1E>
<0E>!<1E>F<12>;B<01>:N<>:N<> U<01><13> U<01><1E>r<EFBFBD>8<EFBFBD>I<EFBFBD>#6<>6<>7<> U<01>
<0F>s<EFBFBD>C<EFBFBD><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E>'<27> (<28> U<01><12> U<01>J<17><17>-1<>+/<2F> $<24>!%<25>$(<28> <20><1E>O$<24><15>O$<24><11>O$<24><11> O$<24>
<18><05>c<EFBFBD>5<EFBFBD>j<EFBFBD>)<29>*<2A> O$<24> <1A>-<2D>(<28> O$<24><18><04>~<7E>O$<24><19><14><0E>O$<24><1C>D<EFBFBD>><3E>O$<24><19>O$<24><1B>O$<24>
<0E>O$<24>b <1C> "<22>G(<28>R<18>X<EFBFBD>g<EFBFBD>%6<><18>3<EFBFBD><18>4<1E> <16><1C><1A><1E>#'<27> <16><18> <16><15> <16>
<14> <16> <17> <16><19><16> <20> <16>
<0A> <16>D,0<><05><14>D<EFBFBD><14><14><14>#<23><14>@59<35><15> #<23>c<EFBFBD> #<23>T<EFBFBD> #<23>$<24> #<23>SW<53> #<23>"*.<2E><1A>%)<29>#<23> I<1D><18> <0A>&<26>I<1D><14> I<1D>
<1E>c<EFBFBD>]<5D> I<1D> <1C> I<1D>
<0A>I<1D>^*.<2E><1A>.<2E>#<23>#<23><11>#<23><18> <0A>&<26> #<23>
<14> #<23> <19> #<23><1C>#<23>
<0E>#<23>D<1C>)-<2D><1A>-<2D>#'<27>#'<27>y<13><13>y<13><18> <0A>&<26> y<13>
<14> y<13> <19> y<13>!<21>y<13><1C>C<EFBFBD>=<3D>y<13>
<0A>y<13>~<1C>)-<2D><1A>-<2D>#'<27>#'<27>$"<22><11>$"<22><13> $"<22>
<18> <0A>&<26> $"<22> <14> $"<22><19>$"<22>!<21>$"<22><1C>C<EFBFBD>=<3D>$"<22>
<0E>$"rcr<><00> svg_main_codec<00>Z<00>ttj|j<00><00><00>S)z<>Returns a unique hash for the given SVG main code.
Args:
svg_main_code (str): The content we're going to inject in the SVG envelope.
Returns:
str: a hash of the given content
)r<>r@rArB)r`s rd<00> _svg_hashrb;
s!<00><00> <0F>t<EFBFBD>|<7C>|<7C>M<EFBFBD>0<>0<>2<>3<> 4<>4rc<00>__main__)rLzJSONRPC [i]request[/i]<5D>g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?Fz2.0<EFBFBD>subtract<63>*<00>)<02>minuend<6E>
subtrahendr)<04>jsonrpcr<00>params<6D>idz Hello, World!z{'a': 1}z&Which one is correct team name in NBA?)zNew York BullszLos Angeles KingszGolden State Warriors<72> Huston Rocketrm)<03>questionr<6E><00>answer)<02>answered<65>q1z 5 + 7 = ?)<04>
<00> <00> <00> rtz
12 - 8 = ?)r%rer<00>rv)rprq<00>q2)<02>sport<72>maths)r1<00>empty<74>quizr<7A>)r~rM)<29>r<EFBFBD>r#r<>rrr@<00>abcrr<00> dataclassesrrr<00> functoolsrr r<>r
r <00> itertoolsr <00>mathr <00>timer<00>typesrrr<00>typingrrrrrrrrrrrrrrr r!r"r#<00>rich._null_filer$r<>r&r'r(<00>_export_formatr)r*<00>_filenor+rtr,r-rHr.r/r<>r0r1r<>r2rMr3rRr4r5r}r7r)r r8r9r<>r:r;<00>prettyr<r=<00>protocolr>rwr?<00>scoper@r<>rArNrBr<>rCrD<00>styledrE<00>terminal_themerFrGrHr&rIrJr<>rKrLr9rMr<>rNr<>rPrerf<00>platformr;r<>rVr<>r<>r^r<><00> __stdin__r<5F><00> _STDIN_FILENO<4E> Exception<6F>
__stdout__<EFBFBD>_STDOUT_FILENO<4E>
__stderr__<EFBFBD>_STDERR_FILENOr<4F>r<>r<>r<>r<>rjrqr<>r<>rr<>rur<>r<>r<>r<>r<>r<>r<>rr<>rr'r<>rqr<>r<><00>localr-r2r5ror8r=r<>rbr_r<>r<>rr)r1<00>systems00rd<00><module>r<>sx<00><01><0E> <09>
<EFBFBD><10> <0B>#<23>(<28><1D><1B><1B><17><1B><1C><15><1A>6<>6<><02><02><02><02><02>*&<26><1C>*<2A>C<><1F>6<>%<25>)<29><1C><1F>9<>+<2B>5<>%<25>)<29><1F><1A><1F><1A><1C>#<23><1A>S<>S<> <20>$<24><10>0<><1A><1E><1D><17><1B><15>
<0A>,<2C>,<2C>'<27>
!<21><07><1A>E<EFBFBD>#<23>v<EFBFBD>+<2B>.<2E>/<2F><16>7<>8<><0F><17>D<>E<> <0A><18>=<3D>><3E><0E> <09> <09> <15>J<EFBFBD> <09><16><17>M<EFBFBD>M<EFBFBD>(<28>(<28>*<2A>M<EFBFBD><17><18>^<5E>^<5E>*<2A>*<2A>,<2C>N<EFBFBD><17><18>^<5E>^<5E>*<2A>*<2A>,<2C>N<EFBFBD><1E>~<7E>~<7E>><3E> <0C>%<25>~<7E>6<><13><19> "<22> "<22><1B>%<25>%<25><1A>#<23>#<23><02> <0C>.<2E>
<EFBFBD>.<2E> <0B>B<17>B<17> <0B>B<17>J<13> <0C>x<EFBFBD> <0C><13> <0C><13> <0C><08> <0C><13> <0C><17>(<28>(<28>C<EFBFBD>7<>8<><0E>:<3A><18><05>n<EFBFBD>g<EFBFBD>5<>6<>7<> <0C>#<23>%<25><11>3<>9<EFBFBD>3<> )<29> )<29><1C><1C>$<1C><1C>B!<21>!<21>*$%<25>$%<25>N,/<2F>,/<2F>^$<24>$<24>B<15>t<EFBFBD><15>x<EFBFBD><03>X<EFBFBD>c<EFBFBD>5<EFBFBD>j<EFBFBD>-A<>(A<>B<><15>,<15>T<EFBFBD><15>*<1C>$<24>$<24> <16> <20> <20><1C>&<26>&<26><1A>"<22>"<22> <02> <0A>:G<01>9L<39>9L<39>9N<39>O<><1C><14>v<EFBFBD><06><04> <0C>O<><14> <0B><1A>)<29>/<2F>/<2F><1A> <0B><1A> <0C><13> <0C>&AE<01><19>8<EFBFBD>$<<3C>=<3D>D<>%<25>=<3D>t<EFBFBD>=<3D>
m"<22>m"<22>`? 5<>S<EFBFBD> 5<>S<EFBFBD> 5<> <0C>z<EFBFBD><19><15>T<EFBFBD>"<22>G<EFBFBD> <0B>K<EFBFBD>K<EFBFBD> <20> <09> <0B> <0C> <0A> <0C><1C> <20>"$<24>B<EFBFBD>7<><13> 
<EFBFBD> <06> <0C>K<EFBFBD>K<EFBFBD><0F><1A>T<EFBFBD>'<27>]<5D>;<3B> <0B>M<EFBFBD>M<EFBFBD><18><17>!%<25>$L<>$<1A> #2<> <16> <12>!&<26>$/<2F>#3<>"$<24><16> %1<>#/<2F>"#<23><16> <12><0E>
<EFBFBD>!<06>)<1A><>aO<11><16><15>M<EFBFBD><16><><11><17><16>N<EFBFBD><17><><11><17><16>N<EFBFBD><17><>v Ps<<00>
O,<00>&O:<00>P<00> P<06>,O7<03>6O7<03>:P<03>P<03>P<03>P