watts.Parameters.show_summary#
- Parameters.show_summary(show_metadata=True, sort_by='key', filter_by={})[source]#
Display a summary of the parameters
- Parameters:
show_metadata – Whether to print user and timestamp associated with key/value pair
sort_by – Field to sort by (‘key’, ‘value’, ‘user’, ‘time’; default is ‘key’)
filter_by – Dictionary defining filters to apply to fields. The dictionary keys describe the fields and must be one of ‘key’, ‘value’, ‘user’, or ‘time’. The dictionary values are functions that will be applied to values in that field. A row will be displayed in the summary only if all functions applied to the values in that row return true.
Examples
Print all the parameters sorted by timestamp:
>>> params.show_summary(sort_by='time')
Print only the parameters added by <username>:
>>> params.show_summary(filter_by={'user': lambda x: x == 'username'})