Package openid :: Package yadis :: Module discover
[frames] | no frames]

Module discover

source code

Classes
  DiscoveryFailure
Raised when a YADIS protocol error occurs in the discovery process
  DiscoveryResult
Contains the result of performing Yadis discovery on a URI
Functions
 
discover(uri)
Discover services for a given URI.
source code
Function Details

discover(uri)

source code 

Discover services for a given URI.

Parameters:
  • uri - The identity URI as a well-formed http or https URI. The well-formedness and the protocol are not checked, but the results of this function are undefined if those properties do not hold.
Returns:
DiscoveryResult object
Raises:
  • Exception - Any exception that can be raised by fetching a URL with the given fetcher.
  • DiscoveryFailure - When the HTTP response does not have a 200 code.