Bug#1072301: ITP: python3-anytree -- Powerful and Lightweight Python Tree Data Structure with various plugins
Package: wnpp
Severity: wishlist
Owner: Mitchell Augustin <mitchell.augustin@canonical.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, mitchell.augustin@canonical.com
* Package name : python3-anytree
Version : 2.12.1
Upstream Contact: c0fec0de <c0fec0de@gmail.com>
* URL : https://github.com/c0fec0de/anytree
* License : Apache 2
Programming Lang: Python
Description : Powerful and Lightweight Python Tree Data Structure with various plugins
anytree is best described with some basic usage examples:
Construction:
from anytree import Node, RenderTree
udo = Node("Udo")
marc = Node("Marc", parent=udo)
lian = Node("Lian", parent=marc)
dan = Node("Dan", parent=udo)
jet = Node("Jet", parent=dan)
jan = Node("Jan", parent=dan)
joe = Node("Joe", parent=dan)
Node:
print(udo)
Node('/Udo')
print(joe)
Node('/Udo/Dan/Joe')
Tree:
for pre, fill, node in RenderTree(udo):
print("%s%s" % (pre, node.name))
Udo
├── Marc
│ └── Lian
└── Dan
├── Jet
├── Jan
└── Joe
- This package is a dependency of some utilities inside
Mellanox OFED, which I utilize
- I am open to maintaining this as part of one of the python
packaging teams like pkg-python or PythonTeam (or others.
Not sure which is best.) I will need a sponsor and would
welcome a co-maintainer.
Reply to: