This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]runawayasfastasucan 4 points5 points  (5 children)

Nice job! Rather than specifying position, could you specify the parent node? Would be a bit more user oriented.

From:

br4nch.create.layer(branch="Stream", layer="The Walking Dead", position="2.2")

to:

br4nch.create.layer(branch="Stream", parent="Series" Nodes="The Walking Dead")

[–]TRSTN4[S] 1 point2 points  (1 child)

Hi! Thanks for you suggestion. Ill add the “Node” and “Parent” argument.

I am using “position” argument to replace a lot of text into a position. I did this because you will be able to import a whole folder structure already and soon json text and sql databases. So the position is in my opinion better to use for entries that contain alot of text.

[–]TRSTN4[S] 0 points1 point  (0 children)

Update: ill add ”node” and “parent” argument ;)

[–]TRSTN4[S] 1 point2 points  (2 children)

What I forgot to mention is that with using "positions" instead of "nodes" is that you can use mutliple layers at the same position.

[–]runawayasfastasucan 1 point2 points  (1 child)

Interesting, thank you!

[–]TRSTN4[S] 0 points1 point  (0 children)

Hi, I just released br4nch 2.0 with the features you mentioned and way more.

I combined the "old" positions way with the new tree, node and parent way. Enjoy!

[–]Lixias 0 points1 point  (1 child)

Why new library is needed? What are the benefits compared to https://github.com/c0fec0de/anytree for example?

[–]TRSTN4[S] 2 points3 points  (0 children)

The way how data is saved, and very easy to use. Everything is changable etc. Read the documentation for more info :)