conkit.core.entity module¶
Entity container used throughout ConKit
-
class
Entity
(id)[source]¶ Bases:
object
Base 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
Entity
class 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 aContact
e.g. is something like: (‘1aa’, 1, (1, 10))This corresponds to:
ContactFile
identifier => 1aaaContactMap
identifier => 1Contact
identifier => (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
-