conkit.core.entity module¶
Entity container used throughout ConKit
-
class
Entity(id)[source]¶ Bases:
objectBase class for all entities used in this interface.
It handles the storage of data. It also provides a high-efficiency methods to allow fast lookup and iterations of each entity. It also provides a hierarchical structure to remember parent and child entities.
Warning
It is strongly advised against the use of the
Entityclass directly. Instead, use one or more of the the remaining data models.-
child_dict
-
child_list
-
full_id A traceback id including all parent classes
The full id is a tuple containing all id’s starting from the top object (
ContactFile) down to the current object. A full id for aContacte.g. is something like: (‘1aa’, 1, (1, 10))This corresponds to:
ContactFileidentifier => 1aaaContactMapidentifier => 1Contactidentifier => (1, 10)
-
id The ID of the selected entity
-
static
listify(s)[source]¶ Convert unknown input to a list
Parameters: s (str, int, float, list, tuple) – Returns: The input as list Return type: list
-
parent
-