#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# if ( 'metrics' in self . meta ) : #NEWLINE# #INDENT# metrics = ', ' . join ( self . meta [ 'metrics' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# metrics = 'all available metrics' #NEWLINE# #UNINDENT# if self . has_daterange : #NEWLINE# #INDENT# date = ' from {} to {}' . format ( self . meta [ 'since' ] . date ( ) . isoformat ( ) , self . meta [ 'until' ] . date ( ) . isoformat ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# date = '' #NEWLINE# #UNINDENT# return "<Insights for '{}' ({}{})>" . format ( repr ( self . edge . name ) , metrics , date )