lighttree.node module¶
-
class
lighttree.node.AutoIdNode(identifier: Optional[str] = None, keyed: bool = True, accept_children: bool = True, repr_: Optional[str] = None, data: Any = None)[source]¶ Bases:
lighttree.node.Node
-
class
lighttree.node.Node(identifier: str, keyed: bool = True, accept_children: bool = True, repr_: Union[str, NoneType] = None, data: Any = None)[source]¶ Bases:
object-
accept_children= True¶
-
data= None¶
-
keyed= True¶
-
line_repr(depth: int, **kwargs) → Tuple[str, str][source]¶ Control how node is displayed in tree representation. First returned string is how node is represented on left, second string is how node is represented on right.
MyTree ├── one OneEnd │ └── two twoEnd └── three threeEnd
-
repr_= None¶
-