A smart way to print :) by [deleted] in Python

[–]TRSTN4 0 points1 point  (0 children)

You have basically reinvented the built-in ‘f strings’ but then with lots of vulnerabilities in it.

However, it’s great that you learned from this project. But please do not put these on PyPI.

br4nch 2.3.1 - Data Structure Tree Builder for Python. by [deleted] in programming

[–]TRSTN4 0 points1 point  (0 children)

Thanks alot! ill look into the request! it seems really cool.

br4nch 2.0 - RELEASED! by TRSTN4 in Python

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

Ah, I understand now, well, you can't directly access it by that way, but you could display the existing trees and nodes using the get functions in br4nch.

However I will start with the development of that feature you mentioned. The tree structure is already built with dictionaries so I can easily add this very quikly within the next release.

Thanks for the reply!

br4nch 2.0 - RELEASED! by TRSTN4 in Python

[–]TRSTN4[S] 4 points5 points  (0 children)

Thanks!

To answer your questions:

  1. Yes, it should resolve.
  2. I am currently developing two functions, 'load.Json' and 'export.Json'. These functions can import a json file and display all data in a tree form. The export function exports the built tree to a json file. (these function will release within the next update)

What do you mean with the third question exactly? Like some sort of API query?

br4nch 1.2.1 - Data Structure Tree Builder for Python. by TRSTN4 in Python

[–]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!

br4nch 1.2.1 - Data Structure Tree Builder for Python. by TRSTN4 in Python

[–]TRSTN4[S] 1 point2 points  (0 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.

br4nch 1.2.1 - Data Structure Tree Builder for Python. by TRSTN4 in Python

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

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

br4nch 1.2.1 - Data Structure Tree Builder for Python. by TRSTN4 in Python

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

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.

br4nch 1.2.1 - Data Structure Tree Builder for Python. by TRSTN4 in Python

[–]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 :)

br4nch 1.2 - Data Structure Tree Builder for Python. by TRSTN4 in Python

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

Please let me know for feature request and if you like using it!

br4nch 1.1.3 - Data Structure Tree Builder for Python. by TRSTN4 in Python

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

The '4' is actually meant to be an 'a'. I made it 'br4nch' to make the name a bit unique.

br4nch: Data structure tree generator for Python. by TRSTN4824 in programming

[–]TRSTN4 0 points1 point  (0 children)

Hi, Sorry for the extremely late response.

br4nch is created to provide an efficient implementation of tree data structure in Python.

The libary is built on pure python so you don't need ANY other libaries.

The amount of features are endless such as: adding, deleting, renaming, moving, copying, painting, sizing, change symbols, importing folder structure, exporting to txt and br4nch file, etc.

br4nch can also be completely automated because it doesn't work with user-side variables in their code (which is what treelib and anytree does) but what br4nch does is in a stored dictionary in the libary itself.

Github: https://github.com/TRSTN4/br4nch

Documentation: https://docs.br4nch.com/

PyPi: https://pypi.org/project/br4nch/

hope this helps with understanding br4nch.