arcanumpy.text_color_fnc module

class arcanumpy.text_color_fnc.text_color[source]

Bases: object

A class that contains a bunch of functions to color the text in the terminal.

Functions:

red_text: str -> str

Returns the text in red color.

green_text: str -> str

Returns the text in green color.

yellow_text: str -> str

Returns the text in yellow color.

blue_text: str -> str

Returns the text in blue color.

magenta_text: str -> str

Returns the text in magenta color.

cyan_text: str -> str

Returns the text in cyan color.

white_text: str -> str

Returns the text in white color.

black_text: str -> str

Returns the text in black color.

aqua_text: str -> str

Returns the text in aqua color.

orange_text: str -> str

Returns the text in orange color.

purple_text: str -> str

Returns the text in purple color.

pink_text: str -> str

Returns the text in pink color.

grey_text: str -> str

Returns the text in grey color.

brown_text: str -> str

Returns the text in brown color.

turquoise_text: str -> str

Returns the text in turquoise color.

lime_text: str -> str

Returns the text in lime color.

bold_text: str -> str

Returns the text in bold.

underline_text: str -> str

Returns the text with underline.

blink_text: str -> str

Returns the text with blink.

reverse_text: str -> str

Returns the text with reverse.

invisible_text: str -> str

Returns the text with invisible.

strikethrough_text: str -> str

Returns the text with strikethrough.

double_underline_text: str -> str

Returns the text with double underline.

double_intensity_text: str -> str

Returns the text with double intensity.

Jupyter Notebook Usage:

from arcanumpy import text_color_fnc

# Create a sample text to test the functions. sample_text = “This is a sample text.”

# Run the functions. text_color = text_color()

print(text_color.red_text(sample_text)) print(text_color.green_text(sample_text)) print(text_color.yellow_text(sample_text)) print(text_color.blue_text(sample_text)) print(text_color.magenta_text(sample_text)) print(text_color.cyan_text(sample_text)) print(text_color.white_text(sample_text)) print(text_color.black_text(sample_text)) print(text_color.aqua_text(sample_text)) print(text_color.orange_text(sample_text)) print(text_color.purple_text(sample_text)) print(text_color.pink_text(sample_text)) print(text_color.grey_text(sample_text)) print(text_color.brown_text(sample_text)) print(text_color.turquoise_text(sample_text)) print(text_color.lime_text(sample_text)) print(text_color.bold_text(sample_text)) print(text_color.underline_text(sample_text)) print(text_color.blink_text(sample_text)) print(text_color.reverse_text(sample_text)) print(text_color.invisible_text(sample_text)) print(text_color.strikethrough_text(sample_text)) print(text_color.double_underline_text(sample_text)) print(text_color.double_intensity_text(sample_text))

red_text(text)[source]
green_text(text)[source]
yellow_text(text)[source]
blue_text(text)[source]
magenta_text(text)[source]
cyan_text(text)[source]
white_text(text)[source]
black_text(text)[source]
aqua_text(text)[source]
orange_text(text)[source]
purple_text(text)[source]
pink_text(text)[source]
grey_text(text)[source]
brown_text(text)[source]
turquoise_text(text)[source]
lime_text(text)[source]
bold_text(text)[source]
underline_text(text)[source]
reverse_text(text)[source]
invisible_text(text)[source]
strikethrough_text(text)[source]
double_underline_text(text)[source]
double_intensity_text(text)[source]
__dict__ = mappingproxy({'__module__': 'arcanumpy.text_color_fnc', '__doc__': '\n    A class that contains a bunch of functions to color the text in the terminal.\n\n    Functions:\n    ----------\n\n    red_text: str -> str\n        Returns the text in red color.\n\n    green_text: str -> str\n        Returns the text in green color.\n\n    yellow_text: str -> str\n        Returns the text in yellow color.\n\n    blue_text: str -> str\n        Returns the text in blue color.\n\n    magenta_text: str -> str\n        Returns the text in magenta color.\n\n    cyan_text: str -> str\n        Returns the text in cyan color.\n\n    white_text: str -> str\n        Returns the text in white color.\n\n    black_text: str -> str\n        Returns the text in black color.\n\n    aqua_text: str -> str\n        Returns the text in aqua color.\n\n    orange_text: str -> str\n        Returns the text in orange color.\n\n    purple_text: str -> str\n        Returns the text in purple color.\n\n    pink_text: str -> str\n        Returns the text in pink color.\n\n    grey_text: str -> str\n        Returns the text in grey color.\n\n    brown_text: str -> str\n        Returns the text in brown color.\n\n    turquoise_text: str -> str\n        Returns the text in turquoise color.\n\n    lime_text: str -> str\n        Returns the text in lime color.\n\n    bold_text: str -> str\n        Returns the text in bold.\n\n    underline_text: str -> str\n        Returns the text with underline.\n\n    blink_text: str -> str\n        Returns the text with blink.\n\n    reverse_text: str -> str\n        Returns the text with reverse.\n\n    invisible_text: str -> str\n        Returns the text with invisible.\n\n    strikethrough_text: str -> str\n        Returns the text with strikethrough.\n\n    double_underline_text: str -> str\n        Returns the text with double underline.\n\n    double_intensity_text: str -> str\n        Returns the text with double intensity.\n\n    Jupyter Notebook Usage:\n    -----------------------\n\n    \n        from arcanumpy import text_color_fnc\n\n        # Create a sample text to test the functions.\n        sample_text = "This is a sample text."\n\n        # Run the functions.\n        text_color = text_color()\n\n        print(text_color.red_text(sample_text))\n        print(text_color.green_text(sample_text))\n        print(text_color.yellow_text(sample_text))\n        print(text_color.blue_text(sample_text))\n        print(text_color.magenta_text(sample_text))\n        print(text_color.cyan_text(sample_text))\n        print(text_color.white_text(sample_text))\n        print(text_color.black_text(sample_text))\n        print(text_color.aqua_text(sample_text))\n        print(text_color.orange_text(sample_text))\n        print(text_color.purple_text(sample_text))\n        print(text_color.pink_text(sample_text))\n        print(text_color.grey_text(sample_text))\n        print(text_color.brown_text(sample_text))\n        print(text_color.turquoise_text(sample_text))\n        print(text_color.lime_text(sample_text))\n        print(text_color.bold_text(sample_text))\n        print(text_color.underline_text(sample_text))\n        print(text_color.blink_text(sample_text))\n        print(text_color.reverse_text(sample_text))\n        print(text_color.invisible_text(sample_text))\n        print(text_color.strikethrough_text(sample_text))\n        print(text_color.double_underline_text(sample_text))\n        print(text_color.double_intensity_text(sample_text))\n\n    ', 'red_text': <function text_color.red_text>, 'green_text': <function text_color.green_text>, 'yellow_text': <function text_color.yellow_text>, 'blue_text': <function text_color.blue_text>, 'magenta_text': <function text_color.magenta_text>, 'cyan_text': <function text_color.cyan_text>, 'white_text': <function text_color.white_text>, 'black_text': <function text_color.black_text>, 'aqua_text': <function text_color.aqua_text>, 'orange_text': <function text_color.orange_text>, 'purple_text': <function text_color.purple_text>, 'pink_text': <function text_color.pink_text>, 'grey_text': <function text_color.grey_text>, 'brown_text': <function text_color.brown_text>, 'turquoise_text': <function text_color.turquoise_text>, 'lime_text': <function text_color.lime_text>, 'bold_text': <function text_color.bold_text>, 'underline_text': <function text_color.underline_text>, 'blink_text': <function text_color.blink_text>, 'reverse_text': <function text_color.reverse_text>, 'invisible_text': <function text_color.invisible_text>, 'strikethrough_text': <function text_color.strikethrough_text>, 'double_underline_text': <function text_color.double_underline_text>, 'double_intensity_text': <function text_color.double_intensity_text>, '__dict__': <attribute '__dict__' of 'text_color' objects>, '__weakref__': <attribute '__weakref__' of 'text_color' objects>, '__annotations__': {}})
__module__ = 'arcanumpy.text_color_fnc'
class arcanumpy.text_color_fnc.background_color[source]

Bases: object

red_background(text)[source]
green_background(text)[source]
yellow_background(text)[source]
blue_background(text)[source]
magenta_background(text)[source]
cyan_background(text)[source]
white_background(text)[source]
black_background(text)[source]
aqua_background(text)[source]
orange_background(text)[source]
purple_background(text)[source]
pink_background(text)[source]
grey_background(text)[source]
brown_background(text)[source]
turquoise_background(text)[source]
lime_background(text)[source]
bold_background(text)[source]
underline_background(text)[source]
reverse_background(text)[source]
invisible_background(text)[source]
__dict__ = mappingproxy({'__module__': 'arcanumpy.text_color_fnc', 'red_background': <function background_color.red_background>, 'green_background': <function background_color.green_background>, 'yellow_background': <function background_color.yellow_background>, 'blue_background': <function background_color.blue_background>, 'magenta_background': <function background_color.magenta_background>, 'cyan_background': <function background_color.cyan_background>, 'white_background': <function background_color.white_background>, 'black_background': <function background_color.black_background>, 'aqua_background': <function background_color.aqua_background>, 'orange_background': <function background_color.orange_background>, 'purple_background': <function background_color.purple_background>, 'pink_background': <function background_color.pink_background>, 'grey_background': <function background_color.grey_background>, 'brown_background': <function background_color.brown_background>, 'turquoise_background': <function background_color.turquoise_background>, 'lime_background': <function background_color.lime_background>, 'bold_background': <function background_color.bold_background>, 'underline_background': <function background_color.underline_background>, 'blink_background': <function background_color.blink_background>, 'reverse_background': <function background_color.reverse_background>, 'invisible_background': <function background_color.invisible_background>, '__dict__': <attribute '__dict__' of 'background_color' objects>, '__weakref__': <attribute '__weakref__' of 'background_color' objects>, '__doc__': None, '__annotations__': {}})
__module__ = 'arcanumpy.text_color_fnc'