(self, source: Any, format: str, **providerKwargs)
Find the correct de-serializer class from registry for the given
        format; instantiate it with given source and providerKwargs; get
        all available topic definitions.
Find the correct de-serializer class from registry for the given
        format; instantiate it with given source and providerKwargs; get
        all available topic definitions.
Find the correct de - serializer class from registry for the given format ; instantiate it with given source and providerKwargs ; get all available topic definitions .
def __init__(self, source: Any, format: str, **providerKwargs):
        """
        Find the correct de-serializer class from registry for the given
        format; instantiate it with given source and providerKwargs; get
        all available topic definitions.
        """
        if format not in self._typeRegistry:
            raise UnrecognizedSourceFormatError()
        providerClassObj = self._typeRegistry[format]
        provider = providerClassObj(source, **providerKwargs)
        self.__topicDefns = {}
        self.__treeDocs = provider.getTreeDoc()
        try:
            topicDefn = provider.getNextTopic()
            while topicDefn is not None:
                self.__topicDefns[topicDefn.nameTuple] = topicDefn
                topicDefn = provider.getNextTopic()
        finally:
            provider.doneIter()
def __init__ ( self , source : Any , format : str , * * providerKwargs ) : if format not in self . _typeRegistry : raise UnrecognizedSourceFormatError ( ) providerClassObj = self . _typeRegistry [ format ] provider = providerClassObj ( source , * * providerKwargs ) self . __topicDefns = { } self . __treeDocs = provider . getTreeDoc ( ) try : topicDefn = provider . getNextTopic ( ) while topicDefn is not None : self . __topicDefns [ topicDefn . nameTuple ] = topicDefn topicDefn = provider . getNextTopic ( ) finally : provider . doneIter ( )