WoTPy
0.16.0
  • Protocol Bindings
  • API Reference
    • wotpy.wot
      • wotpy.wot.consumed
      • wotpy.wot.dictionaries
        • wotpy.wot.dictionaries.base
        • wotpy.wot.dictionaries.filter
        • wotpy.wot.dictionaries.interaction
        • wotpy.wot.dictionaries.link
        • wotpy.wot.dictionaries.schema
        • wotpy.wot.dictionaries.security
        • wotpy.wot.dictionaries.thing
        • wotpy.wot.dictionaries.version
      • wotpy.wot.discovery
      • wotpy.wot.exposed
      • wotpy.wot.constants
      • wotpy.wot.enums
      • wotpy.wot.events
      • wotpy.wot.form
      • wotpy.wot.interaction
      • wotpy.wot.servient
      • wotpy.wot.td
      • wotpy.wot.thing
      • wotpy.wot.validation
      • wotpy.wot.wot
    • wotpy.utils
    • wotpy.protocols
    • wotpy.codecs
WoTPy
  • Docs »
  • API Reference »
  • wotpy.wot »
  • wotpy.wot.dictionaries »
  • wotpy.wot.dictionaries.link
  • View page source

wotpy.wot.dictionaries.link¶

Wrapper classes for link dictionaries defined in the Scripting API.

Classes

FormDict(*args, **kwargs) Communication metadata indicating where a service can be accessed by a client application.
LinkDict(*args, **kwargs) A Web link, as specified by IETF RFC 8288.
class wotpy.wot.dictionaries.link.FormDict(*args, **kwargs)¶

Bases: wotpy.wot.dictionaries.link.LinkDict

Communication metadata indicating where a service can be accessed by a client application. An interaction might have more than one form.

class Meta¶

Bases: object

defaults = {'contentType': 'application/json'}¶
fields = {'anchor', 'contentType', 'href', 'op', 'rel', 'scopes', 'security', 'subprotocol', 'type'}¶
required = {'href'}¶
resolve_uri(base=None)¶

Resolves and returns the Link URI. When the href does not contain a full URL the base URI is joined with said href.

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

class wotpy.wot.dictionaries.link.LinkDict(*args, **kwargs)¶

Bases: wotpy.wot.dictionaries.base.WotBaseDict

A Web link, as specified by IETF RFC 8288.

class Meta¶

Bases: object

fields = {'anchor', 'href', 'rel', 'type'}¶
required = {'href'}¶
Next Previous

© Copyright 2018, Fundacion CTIC

Built with Sphinx using a theme provided by Read the Docs.