Files
ServerSync/lib/rich/__pycache__/panel.cpython-314.pyc

130 lines
14 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD>+<00><00>x<00>^RIHtHt^RIHt^RIHtHt^RIH t ^RI
H t ^RI H t Ht^RIHtHt^RIHt^R IHtHt^R
IHtHt]'d ^R IHtHtHtHt!R R ] 4t] R8XdL^RIHt]!4t!^RIH"t"Ht^RIHt]!RRR]"^R7t#]!PI4]!PI]#4R#R#)<17>)<02> TYPE_CHECKING<4E>Optional)<01> AlignMethod)<02>ROUNDED<45>Box)<01>cell_len)<01> JupyterMixin)<02> Measurement<6E>measure_renderables)<02>Padding<6E>PaddingDimensions)<01>Segment)<02>Style<6C> StyleType)<02>Text<78>TextType)<04>Console<6C>ConsoleOptions<6E>RenderableType<70> RenderResultc<00>a<00>]tRt^toRt]3RRRRRRRRRRR R
R R R R RRRRRR RR/ V3RlRlllt]]3RRRRRRRRRRR R R R RRRRRR RR/ V3RlRlll4t] V3RlRl4t
] V3RlRl4t V3RlRlt V3RlRlt RtVtR#)!<21>PanelaA console renderable that draws a border around its contents.
Example:
>>> console.print(Panel("Hello, World!"))
Args:
renderable (RenderableType): A console renderable object.
box (Box): A Box instance that defines the look of the border (see :ref:`appendix_box`. Defaults to box.ROUNDED.
title (Optional[TextType], optional): Optional title displayed in panel header. Defaults to None.
title_align (AlignMethod, optional): Alignment of title. Defaults to "center".
subtitle (Optional[TextType], optional): Optional subtitle displayed in panel footer. Defaults to None.
subtitle_align (AlignMethod, optional): Alignment of subtitle. Defaults to "center".
safe_box (bool, optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
expand (bool, optional): If True the panel will stretch to fill the console width, otherwise it will be sized to fit the contents. Defaults to True.
style (str, optional): The style of the panel (border and contents). Defaults to "none".
border_style (str, optional): The style of the border. Defaults to "none".
width (Optional[int], optional): Optional width of panel. Defaults to None to auto-detect.
height (Optional[int], optional): Optional height of panel. Defaults to None to auto-detect.
padding (Optional[PaddingDimensions]): Optional padding around renderable. Defaults to 0.
highlight (bool, optional): Enable automatic highlighting of panel title (if str). Defaults to False.
<EFBFBD>titleN<65> title_align<67>center<65>subtitle<6C>subtitle_align<67>safe_box<6F>expandT<64>style<6C>none<6E> border_style<6C>width<74>height<68>padding<6E> highlightFc<00><><<01>V^8<>dQhRRRS[RS[S[,RS[RS[S[,RS[RS[S[,R S[R
S[R S[R S[S[,R S[S[,RS[RS[RR/#)<12><00>
renderabler<00>boxrrrrrrr r"r#r$r%r&<00>returnN<6E>rrrr<00>boolr<00>intr )<02>format<61> __classdict__s"<22><>1/tmp/pip-target-qd_sq_1j/lib/python/rich/panel.py<70> __annotate__<5F>Panel.__annotate__(s<><00><><00>#<23>#<23>$<24>#<23><11>#<23>
<18><08>!<21> #<23> !<21> #<23><1B>8<EFBFBD>$<24>#<23>$<24>#<23><1B>4<EFBFBD>.<2E>#<23><15>#<23><19>#<23> <20>#<23><18><03>}<7D>#<23><19><13> <0A>#<23>#<23>#<23> <18>!#<23>"
<0E>##<23>c <08><><00>WnW nW0nW@nWPnW`nWpnW<>nW<>nW<>n W<>n
W<>n W<>n W<>n R#<00>N)r)r*rrrrrrr r"r#r$r%r&)<0F>selfr)r*rrrrrrr r"r#r$r%r&s&&&$$$$$$$$$$$$r1<00>__init__<5F>Panel.__init__(sM<00><00>$%<25><0F><16><08><1A>
<EFBFBD>(3<><18> <20> <0A>,<2C><1B> <20> <0A><1C> <0B><1A>
<EFBFBD>(<28><19><1A>
<EFBFBD><1C> <0B><1E> <0C>"<22>r4c<00><><<01>V^8<>dQhRRRS[RS[S[,RS[RS[S[,RS[RS[S[,R S[R
S[R S[S[,R S[S[,R S[RS[RR/#)r(r)rr*rrrrrr r"r#r$r%r&r+rr,)r/r0s"<22>r1r2r3Js<><00><><00>!
<EFBFBD>!
<EFBFBD>$<24>!
<EFBFBD><11>!
<EFBFBD>
<18><08>!<21> !
<EFBFBD> !<21> !
<EFBFBD><1B>8<EFBFBD>$<24>!
<EFBFBD>$<24>!
<EFBFBD><1B>4<EFBFBD>.<2E>!
<EFBFBD><19>!
<EFBFBD> <20>!
<EFBFBD><18><03>}<7D>!
<EFBFBD><19><13> <0A>!
<EFBFBD>#<23>!
<EFBFBD><18>!
<EFBFBD>
<11>!!
r4c  <0C>.<00>V!VVVVVVVVV V
V V V RR7#)z2An alternative constructor that sets expand=False.F) rrrrrr r"r#r$r%r&r<00>)<0E>clsr)r*rrrrrr r"r#r$r%r&s&&&$$$$$$$$$$$r1<00>fit<69> Panel.fitIs;<00><00>&<13> <16> <0F><17>#<23><1D>)<29><1D><17>%<25><17><19><1B><1F><18>
<EFBFBD>
r4c<00>0<<01>V^8<>dQhRS[S[,/#<00>r(r+<00>rr)r/r0s"<22>r1r2r3ns<00><><00> <14> <14><08><14><0E> r4c<08><><00>VP'd<>\VP\4'd!\P!VP4MVPP 4pRVnVPPRR4VnRVn VP4VP^4V#R#<00><05><00>
<EFBFBD> TN) r<00>
isinstance<EFBFBD>strr<00> from_markup<75>copy<70>end<6E>plain<69>replace<63>no_wrap<61> expand_tabs<62>pad)r7<00>
title_texts& r1<00>_title<6C> Panel._titlems<><00><00> <0F>:<3A>:<3A>:<3A><1E>d<EFBFBD>j<EFBFBD>j<EFBFBD>#<23>.<2E>.<2E><15> <20> <20><14><1A><1A>,<2C><19>Z<EFBFBD>Z<EFBFBD>_<EFBFBD>_<EFBFBD>&<26> <17>
 <20>J<EFBFBD>N<EFBFBD>)<29>/<2F>/<2F>7<>7<><04>c<EFBFBD>B<>J<EFBFBD> <1C>!%<25>J<EFBFBD> <1E> <16> "<22> "<22> $<24> <16>N<EFBFBD>N<EFBFBD>1<EFBFBD> <1D><1D> <1D>r4c<00>0<<01>V^8<>dQhRS[S[,/#rArB)r/r0s"<22>r1r2r3~s<00><><00> <14> <14>8<EFBFBD>D<EFBFBD>><3E> r4c<08><><00>VP'd<>\VP\4'd!\P!VP4MVPP 4pRVnVPPRR4VnRVn VP4VP^4V#R#rD) rrHrIrrJrKrLrMrNrOrPrQ)r7<00> subtitle_texts& r1<00> _subtitle<6C>Panel._subtitle}s<><00><00> <0F>=<3D>=<3D>=<3D><1E>d<EFBFBD>m<EFBFBD>m<EFBFBD>S<EFBFBD>1<>1<><15> <20> <20><14><1D><1D>/<2F><19>]<5D>]<5D>'<27>'<27>)<29> <1A>
!#<23>M<EFBFBD> <1D>"/<2F>"5<>"5<>"=<3D>"=<3D>d<EFBFBD>C<EFBFBD>"H<>M<EFBFBD> <1F>$(<28>M<EFBFBD> !<21> <19> %<25> %<25> '<27> <19> <1D> <1D>a<EFBFBD> <20> <20> <20>r4c<00>&<<01>V^8<>dQhRRRRRR/#)r(<00>consoler<00>optionsrr+rr<)r/r0s"<22>r1r2r3<00>s*<00><><00>F<17>F<17> <20>F<17>+;<3B>F<17> <17>Fr4c#<08><>a"<00>\P!VP4p\V4'd\VPV4M VPpSP VP 4pVSP VP4,pVPf VPM\VPVP4pVPf SPM VPpVPPW(R7p RV3Rllp
VPp V eV PV4VP 'd
V^,
M1SP#WBP%V^,
4R7P&p VP(;'gVP(;'gRp V 'd
V ^,p V e8\VP^,
\+W<>P,^,44p V ^,pVP/W<>VP0R7pSP3WNVR7p\5V P6V4p\5V P8 V4p\4P:!4pV eV^8:d'\5V P=V^,
.4V4x<00>M<>V
!V V^,
VP>V P@V4p \5V PBV P@,V4x<00>SPEW<>P%V^,
44Rjx<01>L
\5V P@V PF,V4x<00>Vx<00>VFpVx<00>TRjx<01>L
Vx<00>Vx<00>K VPHpVeVPV4VeV^8:d'\5V PKV^,
.4V4x<00>M<>V
!VV^,
VPLV PNV4p\5V PPV PN,V4x<00>SPEVVP%V^,
44Rjx<01>L
\5V PNV PR,V4x<00>Vx<00>R#ELRELL95i)N)<01>safec <00>`<00>V^8<>dQhR\R\R\R\R\R\/#)r(<00>textr#<00>align<67> characterr r+)rr.rIr)r/s"r1r2<00>,Panel.__rich_console__.<locals>.__annotate__<5F>s<<00><00>- <18>- <18><16>- <18>"<22>- <18>+.<2E>- <18>;><3E>- <18>GL<47>- <18> <11>- r4c<04>$<<01>VP4pVPV4V\VP4,
pVP'd+VP SP VP44V'd<>VR8Xd#\P!VW5,V3RRR7#VR8Xd<V^,p\P!W6,V3VW5V,
,V3RRR7#\P!W5,V3VRRR7#V#)z<>Gets new aligned text.
Args:
text (Text): Title or subtitle text.
width (int): Desired width.
align (str): Alignment.
character (str): Character for alignment.
style (Style): Border style
Returns:
Text: New text instance
<EFBFBD>leftTrE)rOrLr) rK<00>truncaterrMr <00>stylize<7A> get_styler<00>assemble)r`r#rarbr <00> excess_spacerer[s&&&&& <20>r1<00>
align_text<EFBFBD>*Panel.__rich_console__.<locals>.align_text<78>s<><00><><00><18>9<EFBFBD>9<EFBFBD>;<3B>D<EFBFBD> <10>M<EFBFBD>M<EFBFBD>%<25> <20> <20>8<EFBFBD>D<EFBFBD>J<EFBFBD>J<EFBFBD>#7<>7<>L<EFBFBD><13>z<EFBFBD>z<EFBFBD>z<EFBFBD><14> <0C> <0C>W<EFBFBD>.<2E>.<2E>t<EFBFBD>z<EFBFBD>z<EFBFBD>:<3A>;<3B><1B><18>F<EFBFBD>?<3F><1F>=<3D>=<3D><1C>"<22>1<>5<EFBFBD>9<> $<24><1E> <16><16> <1B>h<EFBFBD>&<26>'<27>1<EFBFBD>,<2C>D<EFBFBD><1F>=<3D>=<3D>"<22>)<29>5<EFBFBD>1<><1C>"<22>T<EFBFBD>&9<>:<3A>E<EFBFBD>B<> $<24><1E> <16><16> <20>=<3D>=<3D>"<22>1<>5<EFBFBD>9<><1C> $<24><1E> <16><16> <18>Kr4)r\)r#r$r&)r )*r <00>unpackr%<00>anyr)rhr r"r#<00> max_width<74>minrr*<00>
substituterS<00>stylize_beforer<00>measure<72> update_width<74>maximumr$<00>maxr<00>updater&<00> render_linesr<00>mid_left<66> mid_right<68>line<6E>get_topr<00>top<6F>top_left<66>render<65> top_rightrX<00>
get_bottomr<00>bottom<6F> bottom_left<66> bottom_right)r7r[r\<00>_paddingr)r r"r#rr*rkrR<00> child_width<74> child_height<68> child_options<6E>lines<65>
line_start<EFBFBD>line_end<6E>new_liner{rWs&f& r1<00>__rich_console__<5F>Panel.__rich_console__<5F>s<><00><><00><00><1B>><3E>><3E>$<24>,<2C>,<2C>/<2F><08>25<32>h<EFBFBD>-<2D>-<2D>G<EFBFBD>D<EFBFBD>O<EFBFBD>O<EFBFBD>X<EFBFBD> .<2E>T<EFBFBD>_<EFBFBD>_<EFBFBD> <13><18>!<21>!<21>$<24>*<2A>*<2A>-<2D><05><1C>w<EFBFBD>0<>0<><14>1B<31>1B<31>C<>C<> <0C><14>z<EFBFBD>z<EFBFBD>!<21> <14> <1D> <1D><14>W<EFBFBD>&<26>&<26><04>
<EFBFBD>
<EFBFBD>3<> <0E> .2<EFBFBD>]<5D>]<5D>-B<><17>)<29>)<29><04> <0A> <0A><08><12>h<EFBFBD>h<EFBFBD>!<21>!<21>'<27>!<21>9<><03>- <18>- <18>^<1A>[<5B>[<5B>
<EFBFBD> <15> !<21> <16> %<25> %<25>l<EFBFBD> 3<><14>{<7B>{<7B>{<7B> <12>A<EFBFBD>I<EFBFBD><18><1F><1F><1A>$8<>$8<><15><11><19>$C<>!<21><0E><15>g<EFBFBD> <14><1C>{<7B>{<7B><<3C><<3C>g<EFBFBD>n<EFBFBD>n<EFBFBD><<3C><<3C><04> <0C> <17> <18>A<EFBFBD> <1D>L<EFBFBD> <15> !<21><1D><17>!<21>!<21>A<EFBFBD>%<25>s<EFBFBD>;<3B>8K<38>8K<38>a<EFBFBD>8O<38>'P<><0E>K<EFBFBD><1C>a<EFBFBD><0F><05><1F><0E><0E><1D>d<EFBFBD>n<EFBFBD>n<EFBFBD>'<27>
<EFBFBD> <0A><18>$<24>$<24>Z<EFBFBD>e<EFBFBD>$<24>L<><05><1C>S<EFBFBD>\<5C>\<5C><<3C>8<>
<EFBFBD><1A>c<EFBFBD>m<EFBFBD>m<EFBFBD>_<EFBFBD>|<7C><<3C><08><1A><<3C><<3C>><3E><08> <15> <1D><15>!<21><1A><19>#<23>+<2B>+<2B>u<EFBFBD>q<EFBFBD>y<EFBFBD>k<EFBFBD>2<>L<EFBFBD>A<> A<>#<23><1A><15><01> <09><14> <20> <20><13><07><07><1C> <0E>J<EFBFBD><1A>#<23>,<2C>,<2C><13><17><17>0<>,<2C>?<3F> ?<3F><1E>~<7E>~<7E>j<EFBFBD>2L<32>2L<32>U<EFBFBD>UV<55>Y<EFBFBD>2W<32>X<> X<> X<><19>#<23>'<27>'<27>C<EFBFBD>M<EFBFBD>M<EFBFBD>1<><<3C>@<40> @<40><16><0E><19>D<EFBFBD><1C> <1C><1B>O<EFBFBD>O<EFBFBD><1A>N<EFBFBD><1A>N<EFBFBD> <1A> <1D><0E><0E> <0A> <18> $<24> <19> (<28> (<28><1C> 6<> <18> <20>E<EFBFBD>Q<EFBFBD>J<EFBFBD><19>#<23>.<2E>.<2E>%<25>!<21>)<29><1B>5<>|<7C>D<> D<>&<26><1D><15><01> <09><14>#<23>#<23><13>
<EFBFBD>
<EFBFBD><1C> <0E>M<EFBFBD><1A>#<23>/<2F>/<2F>C<EFBFBD>J<EFBFBD>J<EFBFBD>6<> <0C>E<> E<><1E>~<7E>~<7E><1D>}<7D>9<>9<>%<25>!<21>)<29>D<><0E> <0E> <0E><1A>#<23>*<2A>*<2A>s<EFBFBD>'7<>'7<>7<><1C>F<> F<><16><0E>= Y<01> <1C>& <0E>sQ<00>EQ=<01> A Q=<01>Q=<01>.
Q=<01>9E*Q=<01>#Q5<04>$?Q=<01>#Q8<06>$CQ=<01>Q;<04>4Q=<01>8Q=<01>;Q=c<00>&<<01>V^8<>dQhRRRRRR/#)r(r[rr\rr+r
r<)r/r0s"<22>r1r2r3s%<00><><00>)<29>)<29> <20>)<29>+;<3B>)<29> <16>)r4c<08><><00>VPp\P!VP4wrErFWe,pV'dVPV.M VP.pVP
fN\ VVPVPV,
^,
4V4PV,^,p M VP
p \W<>4#r6) rSr rmr%r)r#r rtrorur
)
r7r[r\rS<00>_<>rightrer%<00> renderablesr#s
&&& r1<00>__rich_measure__<5F>Panel.__rich_measure__s<><00><00><16><1B><1B><06>#<23>N<EFBFBD>N<EFBFBD>4<EFBFBD><<3C><<3C>8<><19><01>!<21><16>,<2C><07>39<33>t<EFBFBD><EFBFBD><EFBFBD><06>/<2F><04><0F><0F>?P<> <0B> <0F>:<3A>:<3A> <1D>#<23><1B><1B>(<28>(<28><17>):<3A>):<3A>W<EFBFBD>)D<>q<EFBFBD>)H<>I<><1F><12><1A>'<27><19> <1A> <14> <14> <12><19>J<EFBFBD>J<EFBFBD>E<EFBFBD><1A>5<EFBFBD>(<28>(r4)r"r*rr$r&r%r)rr rrrrr#)r<00>)<10>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__rr8<00> classmethodr><00>propertyrSrXr<>r<><00>__static_attributes__<5F>__classdictcell__)r0s@r1rrs^<00><><00><00><08>2<1B>#<23>
%)<29> #<23> $,<2C> #<23>(,<2C>#<23>'/<2F>#<23>$(<28>#<23><1C>#<23>"<22>#<23>#)<29>#<23> $<24>#<23>!%<25>#<23>&,<2C>#<23>  <20>!#<23>#<23>B<11><1B>!
<EFBFBD>
%)<29> !
<EFBFBD> $,<2C> !
<EFBFBD>(,<2C>!
<EFBFBD>'/<2F>!
<EFBFBD>$(<28>!
<EFBFBD>"<22>!
<EFBFBD>#)<29>!
<EFBFBD> $<24>!
<EFBFBD>!%<25>!
<EFBFBD>&,<2C>!
<EFBFBD> <20>!
<EFBFBD>!
<EFBFBD><11>!
<EFBFBD>F<0E> <14><0E> <14><0E> <14><0E> <14>F<17>F<17>P)<29>)r4r<00>__main__)r)<02>DOUBLEr)r z Hello, World!z
rich.Panelz white on blue)rr r*r%N)%<25>typingrrrarr*rr<00>cellsr<00>jupyterr rsr
r r%r r <00>segmentrr rrr`rrr[rrrrrr<><00>cr<63><00>p<>printr<r4r1<00><module>r<>s<><00><01>*<2A><1E><1D><1B>!<21>5<>/<2F><1C>#<23> <20><10>N<>N<>X)<29>L<EFBFBD>X)<29>v <0C>z<EFBFBD><19> <20><0F> <09>A<EFBFBD>$<24> <20> <0A><17><1A><1D> <12><11>  <06>A<EFBFBD><06>G<EFBFBD>G<EFBFBD>I<EFBFBD><05>G<EFBFBD>G<EFBFBD>A<EFBFBD>J<EFBFBD>#r4