Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr ListComp SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Slice Num ListLoad SubscriptLoad NameLoad Index Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return BinOpMod NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Return TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad NameLoad Index Str Str Call NameLoad SubscriptLoad NameLoad Index Str orelse If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad NameLoad Index Str Str Call NameLoad SubscriptLoad NameLoad Index Str orelse If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp NameLoad Call NameLoad Str Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
ANSI escape code utilities, see
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
 N/A graph_prefix [ N/A graph_suffix m N/A codes N/A reset bold faint italic underline blink slow_blink fast_blink inverse conceal strike primary_font reset_font font_0 font_1 font_2 font_3 font_4 font_5 font_6 font_7 font_8 font_9 fraktur double_underline end_bold normal_intensity end_italic end_fraktur end_underline end_blink end_inverse end_conceal end_strike black red green yellow blue magenta cyan white extended default fg_black fg_red fg_green fg_yellow fg_blue fg_magenta fg_cyan fg_white fg_extended fg_default bg_black bg_red bg_green bg_yellow bg_blue bg_magenta bg_cyan bg_white bg_extended bg_default frame encircle overline end_frame end_encircle end_overline ideogram_underline right_line ideogram_double_underline right_double_line ideogram_overline left_line ideogram_double_overline left_double_line ideogram_stress reset_ideogram 0 1 2 3 4 5 5 6 7 8 9 10 10 10 11 12 13 14 15 16 17 18 19 20 21 21 22 23 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 40 41 42 44 44 45 46 47 48 49 51 52 53 54 54 55 60 60 61 61 62 62 63 63 64 65 TextFormat N/A object N/A N/A 
    ANSI Select Graphic Rendition (SGR) code escape sequence.
     __init__ N/A N/A self N/A attrs kwargs N/A N/A 
        :param attrs: are the attribute names of any format codes in `codes`

        :param kwargs: may contain

        `x`, an integer in the range [0-255] that selects the corresponding
        color from the extended ANSI 256 color space for foreground text

        `rgb`, an iterable of 3 integers in the range [0-255] that select the
        corresponding colors from the extended ANSI 256^3 color space for
        foreground text

        `bg_x`, an integer in the range [0-255] that selects the corresponding
        color from the extended ANSI 256 color space for background text

        `bg_rgb`, an iterable of 3 integers in the range [0-255] that select
        the corresponding colors from the extended ANSI 256^3 color space for
        background text

        `reset`, prepend reset SGR code to sequence (default `True`)

        Examples:

        .. code-block:: python

            red_underlined = TextFormat('red', 'underline')

            nuanced_text = TextFormat(x=29, bg_x=71)

            magenta_on_green = TextFormat('magenta', 'bg_green')
            print(
                '{0}Can you read this?{1}'
                ).format(magenta_on_green, TextFormat('reset'))
         N/A N/A self codes N/A N/A codes N/A N/A N/A attr lower N/A attr attrs N/A isinstance attr str N/A N/A N/A kwargs get reset True N/A N/A N/A N/A self codes N/A 0 N/A N/A codes N/A reset qualify_int N/A N/A i N/A N/A N/A N/A isinstance i int N/A N/A N/A i 256 N/A qualify_triple_int N/A N/A t N/A N/A N/A N/A N/A isinstance t N/A list tuple N/A N/A len t 3 N/A N/A N/A N/A qualify_int N/A t N/A 0 N/A qualify_int N/A t N/A 1 N/A qualify_int N/A t N/A 2 N/A N/A N/A N/A N/A kwargs get x None None N/A N/A N/A N/A N/A self codes extend N/A N/A codes N/A extended 5 N/A qualify_int N/A kwargs N/A x N/A N/A N/A N/A N/A kwargs get rgb None None N/A N/A N/A N/A N/A self codes extend N/A N/A codes N/A extended 2 N/A N/A N/A N/A self codes extend N/A qualify_triple_int N/A kwargs N/A rgb N/A N/A N/A N/A kwargs get bg_x None None N/A N/A N/A N/A N/A self codes extend N/A N/A codes N/A extended 5 N/A qualify_int N/A kwargs N/A bg_x N/A N/A N/A N/A N/A kwargs get bg_rgb None None N/A N/A N/A N/A N/A self codes extend N/A N/A codes N/A extended 2 N/A N/A N/A N/A self codes extend N/A qualify_triple_int N/A kwargs N/A bg_rgb N/A N/A self sequence N/A %s%s%s N/A graph_prefix N/A N/A ; join N/A self codes graph_suffix N/A __call__ N/A N/A self text reset N/A True N/A N/A 
        Format :param text: by prefixing `self.sequence` and suffixing the
        reset sequence if :param reset: is `True`.

        Examples:

        .. code-block:: python

            green_blink_text = TextFormat('blink', 'green')
            'The answer is: {0}'.format(green_blink_text(42))
         N/A end N/A reset N/A TextFormat reset N/A N/A %s%s%s N/A N/A self sequence text end N/A __str__ N/A N/A self N/A N/A N/A N/A self sequence N/A __repr__ N/A N/A self N/A N/A N/A N/A self sequence N/A N/A