raito.utils.ascii.tree module¶
- class raito.utils.ascii.tree.TreeChars(*, last='╚', middle='╠', vertical='║')[исходный код]¶
Базовые классы:
BaseModelTree branch characters for ASCII tree rendering.
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class raito.utils.ascii.tree.NodeParts(icon, folder, prefix, suffix)[исходный код]¶
Базовые классы:
NamedTupleParts of a tree node.
- class raito.utils.ascii.tree.TreeNode(name, prefix='', suffix='', *, is_folder=False)[исходный код]¶
Базовые классы:
objectTree node with support for prefixes, suffixes and customizable display.
- add_child(name, prefix='', suffix='', *, is_folder=False)[исходный код]¶
Add a child node to this node.
- get_child(name)[исходный код]¶
Get a child node by name.
- class raito.utils.ascii.tree.AsciiTree(folder_icon='📁', folder_suffix='/', tree_chars=None, *, sort=True)[исходный код]¶
Базовые классы:
objectASCII tree renderer with customizable styling.
- render(root)[исходный код]¶
Render the tree to ASCII format.
- raito.utils.ascii.tree.dot_paths_to_tree(paths, prefix_callback=None, suffix_callback=None)[исходный код]¶
Convert dot-notation paths to a tree structure.
- Параметры:
- Результат:
Root node of the tree
- Тип результата: