This adds a new function in pylib that allows for retrieving connected parts of a data model. This function is needed for feasible conversion of parts of the data model into UML.
This MR also adds some missing docstrings to old functions.
There is only one function to check that recursively adds substructure starting from a few given entities.
Check out the branch and try this on an instance of your choice:
import caosdb as db
from caosdb.utils.plantuml import to_graphics, retrieve_substructure
rts = retrieve_substructure(db.execute_query("Find RecordType SomeRecordtype"), 2)
For further good practices have a look at our review guidelines.