def stream_info(self):
        """
        Retrieve information for each stream managed by the consumer group.
        Calls :py:meth:`~Database.xinfo_stream` for each stream.

        :returns: a dictionary mapping stream key to a dictionary of metadata
        """
        accum = {}
        for key in self.keys:
            accum[key] = self.database.xinfo_stream(key)
        return accum
def stream_info ( self ) : accum = { } for key in self . keys : accum [ key ] = self . database . xinfo_stream ( key ) return accum
Retrieve information for each stream managed by the consumer group.
        Calls :py:meth:`~Database.xinfo_stream` for each stream.

        :returns: a dictionary mapping stream key to a dictionary of metadata