Welcome to pynodes’s documentation!

Note

This project is under active development.

Content:

Installation:

(venv) $ git clone https://gitea.lutix.org/ftg/nodes.git

Source code is hosted on my own instance of gitea.

Basic Usage:

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()
Pretty print of the tree
    Alice
      -- Bob
      -- Eve