.. pynodes documentation master file, created by sphinx-quickstart on Sat Mar 30 18:38:12 2024. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to pynodes's documentation! =================================== .. note:: This project is under active development. Content: -------- .. toctree:: :maxdepth: 2 api Installation: ------------- .. code-block:: console (venv) $ git clone https://gitea.lutix.org/ftg/nodes.git Source code is hosted on my own instance of `gitea `_. Basic Usage: ------------ .. code-block:: python import pynodes class Person(pynodes.Node): pass bob = Person('Bob') eve = Person('Eve') alice = Person('Alice') alice_again = Person('Alice') # will raise an error # Alice is parent of bob and eve alice.add_child(bob) alice.add_child(eve) alice.pretty_print() .. code-block:: :caption: Pretty print of the tree Alice -- Bob -- Eve