parent_class package
Submodules
parent_class.ParentClass module
- class parent_class.ParentClass.ParentClass(class_type='')[source]
Bases:
object
- has_atts(atts: List[str]) List[bool] [source]
returns a list of True/False indicating whether the class has each attribute
- print_atts(how: str = 'imp', **kwargs)[source]
Print attributes of the class off, if not printed off, the string will be returned
- print_class_type(print_off: bool = True)[source]
Shows information about what type of class self is
- print_imp_atts(**override_kwargs)[source]
Prints off (or returns a string) with the ‘important’ information about a class Most child classes will redefine this method with custom attributes to print off
- print_one_line_atts(**override_kwargs)[source]
Prints off (or returns a string) with information about a class in one line Most child classes will redefine this method with custom attributes to print off
- print_string(string: str, print_off: bool = True) Any [source]
Function does one of two things 1. Prints off the string and returns NOne 2. Returns the string
parent_class.ParentPlural module
- class parent_class.ParentPlural.ParentPlural(att=None, **kwargs)[source]
Bases:
ParentClass
- DEFAULT_KWARGS = {'MAX_PRINT_ATTS': 10}
- print_imp_atts(print_off=True, max_print_atts: int = -1)[source]
Prints off (or returns a string) with the ‘important’ information about a class Most child classes will redefine this method with custom attributes to print off