neclib.core.formatting.dict_to_html module#
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 (Type[Any] | None) – Type of the object, which this dictionary represents.
metadata (Dict[str, Any] | None) – Metadata to be included in the representation.
aliases (Dict[str, str] | None)
- Returns:
The HTML representation of the dictionary.
- Return type:
rich_repr