flower_box.py module.
flower_box
With print_flower_box_msg you can print messages in a flower_box, meaning a box of asterisks.
- Example:
print a one line message in a flower box
>>> from scottbrian_utils.flower_box import print_flower_box_msg
>>> print_flower_box_msg('This is my message to the world')
***********************************
* This is my message to the world *
***********************************
- flower_box.print_flower_box_msg(msgs, **kwargs)
Print a single or multi-line message inside a flower box.
- Parameters:
msgs (
Union
[str
,List
[str
]]) – single message or list of messages to printkwargs (
Any
) – Specifies the print arguments to use on the print statement, such as end, file, or flush.
- Example:
print a two line message in a flower box
- Return type:
None
>>> from scottbrian_utils.flower_box import print_flower_box_msg
>>> msg_list = ['This is my first line test message', ... 'and my second line'] >>> print_flower_box_msg(msg_list) ************************************** * This is my first line test message * * and my second line * **************************************