wotpy.wot.dictionaries.thing¶
Wrapper class for dictionaries to represent Things.
Classes
ThingFragment(*args, **kwargs) |
ThingFragment is a wrapper around a dictionary that contains properties representing semantic metadata and interactions (Properties, Actions and Events). |
-
class
wotpy.wot.dictionaries.thing.ThingFragment(*args, **kwargs)¶ Bases:
wotpy.wot.dictionaries.base.WotBaseDictThingFragment is a wrapper around a dictionary that contains properties representing semantic metadata and interactions (Properties, Actions and Events). It is used for initializing an internal representation of a Thing Description, and it is also used in ThingFilter.
-
class
Meta¶ Bases:
object-
fields= {'actions', 'base', 'created', 'description', 'events', 'id', 'lastModified', 'links', 'properties', 'security', 'support', 'title', 'version'}¶
-
fields_dict= ['properties', 'actions', 'events']¶
-
fields_instance= ['version']¶
-
fields_list= ['links', 'security']¶
-
fields_readonly= ['id']¶
-
fields_str= ['title', 'description', 'support', 'created', 'lastModified', 'base']¶
-
required= {'id'}¶
-
-
actions¶ The actions optional attribute represents a dict with keys that correspond to Action names and values of type ActionFragment.
-
events¶ The events optional attribute represents a dictionary with keys that correspond to Event names and values of type EventFragment.
-
links¶ The links optional attribute represents an array of Link objects.
-
properties¶ The properties optional attribute represents a dict with keys that correspond to Property names and values of type PropertyFragment.
-
security¶ Set of security configurations, provided as an array, that must all be satisfied for access to resources at or below the current level, if not overridden at a lower level. A default nosec security scheme will be provided if none are defined.
-
title¶ The title of the Thing. This property returns the ID if the title is undefined.
-
version¶ Provides version information.
-
class