API documentation¶
-
class
tri.named_struct.NamedFrozenStruct(*args, **kwargs)[source]¶ Class extending
tri.struct.FrozenStructto only allow a defined subset of string keys.-
__weakref__¶ list of weak references to the object (if defined)
-
classmethod
get_declared(parameter='members')¶ Get the
OrderedDictvalue of the parameter collected by the@declarativeclass decorator. This is the same value that would be submitted to the__init__invocation in themembersargument (or another name if overridden by theparameterspecification) @type cls: class @type parameter: str @return OrderedDict
-
classmethod
set_declared(value, parameter='members')¶ @type cls: class @type value: OrderedDict @type parameter: str
-
-
class
tri.named_struct.NamedStruct(*args, **kwargs)[source]¶ Class extending
tri.struct.Structto only allow a defined subset of string keys.-
classmethod
get_declared(parameter='members')¶ Get the
OrderedDictvalue of the parameter collected by the@declarativeclass decorator. This is the same value that would be submitted to the__init__invocation in themembersargument (or another name if overridden by theparameterspecification) @type cls: class @type parameter: str @return OrderedDict
-
classmethod
set_declared(value, parameter='members')¶ @type cls: class @type value: OrderedDict @type parameter: str
-
classmethod
-
class
tri.named_struct.NamedStructField(*args, **kwargs)[source]¶ Field declaration for
NamedStructclasses-
__ge__(other)¶ x.__ge__(y) <==> x>=y
-
__gt__(other)¶ x.__gt__(y) <==> x>y
-
__le__(other)¶ x.__le__(y) <==> x<=y
-
__weakref__¶ list of weak references to the object (if defined)
-