Connection#
- class geodesic.entanglement.object.Connection(*conn_tuple, **conn)[source]#
A Connection is a relationship between two objects.
Subject -> Predicate -> Object
Attributes
object(
Object, dict) - the object of this connectionpredicate(
Predicate, dict, str) - the predicate of this connectionsubject(
Object, dict) - the subject of this connectionMethods
clear()copy()delete([hard, show_prompt])Deletes this connection from Entanglement.
fromkeys([value])Create a new dictionary with keys from iterable and values set to value.
get(key[, default])Return the value for key if key is in the dictionary, else default.
items()keys()pop(k[,d])If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem()Remove and return a (key, value) pair as a 2-tuple.
save()Updates an existing
Connectionobject or creates a new one if it doesn't exist.setdefault(key[, default])Insert key with a value of default if key is not in the dictionary.
update(*mapping, **kwargs)values()