Convert emoji-cheat-sheet names to unicode and more!
Inspiration: GitHub's gemoji
python3 setup.py install
Converting emoji-cheat-sheet aliases to their escape sequences or unicode entities and vice versa:
>>> import pymoji
>>> pymoji.Emoji(":star:").char
'⭐'
>>> pymoji.Emoji(":star:").escape
'2b50'
>>> pymoji.Emoji("2b50").alias
':star:'
>>> pymoji.Emoji("2b50").aliases
[':star:']
Replacing emoji-cheat-sheet aliases in text and vice versa:
>>> pymoji.replaceAliases("I :heart: Python:exclamation:")
'I ❤ Python❗'
>>> pymoji.replaceEmoji("I ❤ Python❗")
'I :heart: Python:exclamation:'
>>> pymoji.replaceAliases("I :heart: Python:exclamation:", trailingSpaces=1)
'I ❤ Python❗ '