jabref2obsidian.load.parse_group_tree#

jabref2obsidian.load.parse_group_tree(tree_str: str) tuple[source]#

Parses a string representing a tree of groups and returns a dictionary of groups for fast access and a root node for the group tree.

Parameters:

tree_str (str) –

The string representation of the group tree.

Attention

Such text is extracted from the BibDatabase object’s first comment entry, in alignment with the JabRef’s data saving scheme:

tree_str = bib_database.comments[1]
group_dict, tree_root = load.parse_group_tree(tree_str)

Returns:

A tuple containing a dictionary of groups for fast access and a root node for the group tree.

Return type:

tuple