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))
- __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
- __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'