Date: 11 Jul 2022
Module: emoji
Installation: pip install emoji
About: Emoji for Python. The entire set of Emoji codes as defined by the
unicode consortium is supported in addition to a bunch of aliases. By
default, only the official list is enabled but doing
emoji.emojize(language='alias') enables both the full list and aliases.
Sample Source Code:
import emoji
print(emoji.emojize('Python is :thumbs_up:'))
print(emoji.emojize('Python is :thumbsup:', language='alias'))
print(emoji.demojize('Python is 👍'))
print(emoji.emojize("Python is fun :red_heart:"))
print(emoji.emojize("Python is fun :red_heart:",
variant="emoji_type"))
print(emoji.is_emoji("👍"))
Execution:
$ python emoji_sample.py
Output:
Python is 👍
Python is 👍
Python is :thumbs_up:
Python is fun ❤️
Python is fun ❤️
True
Reference: https://pypi.org/project/emoji/
_______________________________________________
Chennaipy mailing list
[email protected]
https://mail.python.org/mailman/listinfo/chennaipy