neclib.core.formatting.dict_to_html#

String or rich-text representation of NECLIB data types.

html_repr_of_dict(__dict, __type=None, /, *, aliases=None, metadata=None)[source]#

Return a HTML representation of a dictionary.

Parameters:
  • __dict (Dict[Any, Any]) – Dictionary to be represented.

  • __type (Optional[Type[Any]]) – Type of the object, which this dictionary represents.

  • metadata (Optional[Dict[str, Any]]) – Metadata to be included in the representation.

  • aliases (Optional[Dict[str, str]]) –

Returns:

The HTML representation of the dictionary.

Return type:

rich_repr