finpricing.utils.tools#
Module Contents#
Classes#
Functions#
| 
 | Return the string representation of a dictionary | 
| 
 | Return the string representation of a dictionary in a pretty table format where | 
| 
 | Return the string representation of a dictionary in a pretty table format | 
| 
 | 
- finpricing.utils.tools.dict_to_obj_str(d: dict) str[source]#
- Return the string representation of a dictionary 
- finpricing.utils.tools.prettyTableByColumn(d: dict, align='') str[source]#
- Return the string representation of a dictionary in a pretty table format where dictionary values can be either iterables for direct use or tuples where the first element is an iterable and the second is a format string. - Args: d (dict): Dictionary with data to be displayed by the table. align (str): String with column alignments. Use ‘l’ for left, ‘r’ for right, and ‘c’ for center. - Returns: str: A string representation of the table.