rich.emoji

class rich.emoji.Emoji(name, style='none', variant=None)[source]
Parameters
classmethod replace(text)[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