wotpy.protocols.utils

Utility functions used by client and server implementations.

Functions

is_scheme_form(form, base, scheme) Returns True if the scheme of the URI for the given Form matches the scheme argument.
pick_form(td, forms, schemes[, op]) Picks the Form that will be used to connect to the remote Thing.
wotpy.protocols.utils.is_scheme_form(form, base, scheme)

Returns True if the scheme of the URI for the given Form matches the scheme argument.

wotpy.protocols.utils.pick_form(td, forms, schemes, op=None)

Picks the Form that will be used to connect to the remote Thing.