rich.emoji

class rich.emoji.Emoji(name: str, style: Union[str, rich.style.Style] = 'none')[source]
classmethod replace(text: str) → str[source]

Replace emoji markup with corresponding unicode characters.

Parameters

text (str) – A string with emojis codes, e.g. “Hello :smiley:!”

Returns

A string with emoji codes replaces with actual emoji.

Return type

str