Skip to content

Python API: The in-memory Tina representation of the Tina database

tina_mgr.db.TinaEntry dataclass

A database entry with the tree of child entries.

Source code in python/src/tina_mgr/db.py
@dataclasses.dataclass(frozen=True)
class TinaEntry:
    """A database entry with the tree of child entries."""

    id: str
    """The unique ID of this entry within the Tina database."""

    desc: str
    """The text of the entry itself."""

    children: list[TinaEntry]
    """The child entries as an ordered list."""

children: list[TinaEntry] instance-attribute

The child entries as an ordered list.

desc: str instance-attribute

The text of the entry itself.

id: str instance-attribute

The unique ID of this entry within the Tina database.