anytree icon indicating copy to clipboard operation
anytree copied to clipboard

Python tree data library

Results 72 anytree issues
Sort by recently updated
recently updated
newest added

per https://stackoverflow.com/questions/2358045/how-can-i-implement-a-tree-in-python do you have functionality to count how many time particular branch was added lets say marc = Node("Marc", parent=udo) lian = Node("Lian", parent=marc) was added 12 times ,...

I might misunderstand something, but the example for, e.g., `leftsibling` in the documentation of `anytree/util/__init__.py` states two things 1. It suggest only `from anytree import Node` 2. To directly call,...

Taking the read-only example and implementing checks on post_attach instead of pre_attach, it does not undo the operation that is supposed to be atomic. Sample code to replicate the issue...

``` head = Node(123, id=123) Node(456, id=456, parent=head) print(RenderTree(head)) Node('/123', id=123) └── Node('/123/456', id=456) ``` How do I add a child to the Node with ID 456? All the examples...

The current implementation does not provide the ability to rearrange the order of the children, which is used for instance in traversing the tree. I have not found a proper...

two similar tree merge into one like this: Node('/a') └── Node('/a/b') and Node('/a') └── Node('/a/c') then: Node('/a') |── Node('/a/c') └── Node('/a/b')

Title says it all. It would be really cool to have diff api which 1) Compares two trees 2) List the differences 3) Lists out steps for transforming one into...

Hi there, Hi there, is there any easy way to create a tree from a python nested dictionary? For instance, I would like to turn: {'tax': {'a':{'c':{}, 'd':{}}, 'b': {'e':{},...

A few days ago I had an issue where anytree operations significantly slowed down over time. cProfile attributed the added time to [this assertion](https://github.com/c0fec0de/anytree/blob/75c0198636f8997967ba00df5077cd21350f68ce/anytree/node/nodemixin.py#L161). If I'm reading it correctly, it...

Please like this ticket, if you are using anytree. Feel free to share infos about your project.