Indenter¶
- class dictIO.utils.counter.Indenter(tab_size: int = 4, tab_char: str = ' ')¶
Bases:
object
A class that implements a static global indentation.
Instances of this class all share the same global indentation. This is used in logger class to ensure a readable message hirarchy.
- __init__(tab_size: int = 4, tab_char: str = ' ') None ¶
Methods
__init__
([tab_size, tab_char])decr
([decrease])Decreas the Indent.
incr
([increase])Increase the Indent.
reset
()Reset the Indent.
Attributes
- static decr(decrease: int = 1) None ¶
Decreas the Indent.
- static incr(increase: int = 1) None ¶
Increase the Indent.
- static reset() None ¶
Reset the Indent.
- Ind: dict[str, Any] = {'Indent': 0, 'TabChar': ' ', 'TabSize': 4}¶