flexmeasures.cli.data_show

CLI commands for listing database contents and classes

Functions

flexmeasures.cli.data_show.find_duplicates(_list: list, attr: str | None = None) list

Find duplicates in a list, optionally based on a specified attribute.

Parameters:
  • _list – The input list to search for duplicates.

  • attr – The attribute name to consider when identifying duplicates. If None, the function will check for duplicates based on the elements themselves.

Returns:

A list containing the duplicate elements found in the input list.

flexmeasures.cli.data_show.list_items(item_type)

Show available items of a specific type.