yieldplotlib.core.node#

The abstract base class for all nodes (files and directories).

Classes#

Node

Abstract base class for all nodes (files and directories).

Module Contents#

class yieldplotlib.core.node.Node(file_path)[source]#

Bases: abc.ABC

Abstract base class for all nodes (files and directories).

Parameters:

file_path (pathlib.Path)

data = None#
file_path#
file_name#
is_input = False#
abstractmethod load()[source]#

Load the file data or trigger recursive loading for directories.

abstractmethod get(key, **kwargs)[source]#

Abstract method to search for data associated with a key.

Parameters:

key (str)

has_key(key)[source]#

Abstract method to determine if the node contains the given key.

Parameters:

key (str)

Return type:

bool

__repr__()[source]#

Default representation for a DataNode.

display_tree(level=0, max_children=5, prefix='')[source]#

Default display method for a DataNode.