sec_parser.utils.py_utils ========================= .. py:module:: sec_parser.utils.py_utils Attributes ---------- .. autoapisummary:: sec_parser.utils.py_utils.MAX_THRESHOLD Functions --------- .. autoapisummary:: sec_parser.utils.py_utils.get_direct_subclass_of_base_class sec_parser.utils.py_utils.clean_whitespace sec_parser.utils.py_utils.normalize_string sec_parser.utils.py_utils.exceeds_capitalization_threshold Module Contents --------------- .. py:data:: MAX_THRESHOLD :value: 100.0 .. py:function:: get_direct_subclass_of_base_class(cls: type, base_class: type) -> type Given a class, find the class that is one step below the specified base_class in its inheritance hierarchy. .. py:function:: clean_whitespace(input_str: str) -> str Replace newlines and any following spaces with a single space. .. py:function:: normalize_string(input_str: str) -> str .. py:function:: exceeds_capitalization_threshold(s: str, threshold: float) -> bool Calculate the percentage of capitalized letters in a given string `s`. Only counts characters that can be capitalized (alphabetic characters).