Skip to content

KoffeinFlummi/pymoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pymoji

Build Status License

Convert emoji-cheat-sheet names to unicode and more!

Inspiration: GitHub's gemoji

Setup

python3 setup.py install

Usage

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❗ '

About

Emoji-cheat-sheet converter for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages