Skip to content

JohannesTK/emoji

This branch is 486 commits behind carpedm20/emoji:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 28, 2018
Jan 5, 2018
Feb 27, 2017
Feb 1, 2018
Apr 16, 2015
Feb 17, 2017
Dec 31, 2015
May 15, 2015
Dec 31, 2015
Aug 23, 2017
Apr 16, 2015
Feb 17, 2017

Repository files navigation

Emoji

Emoji for Python. This project was inspired by kyokomi.

Example

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(use_aliases=True) enables both the full list and aliases.

>> import emoji
>> print(emoji.emojize('Python is :thumbs_up:'))
Python is πŸ‘
>> print(emoji.emojize('Python is :thumbsup:', use_aliases=True))
Python is πŸ‘
>> print(emoji.demojize('Python is πŸ‘'))
Python is :thumbs_up:

Installation

Via pip:

$ pip install emoji --upgrade

From master branch:

$ git clone https://github.com/carpedm20/emoji.git
$ cd emoji
$ python setup.py install

Developing

$ git clone https://github.com/carpedm20/emoji.git
$ cd emoji
$ pip install -e .\[dev\]
$ nosetests

The utils/get-codes-from-unicode-consortium.py may help when updating unicode_codes.py but is not guaranteed to work. Generally speaking it scrapes a table on the Unicode Consortium's website with BeautifulSoup and prints the contents to stdout in a more useful format.

Link

Emoji Cheat Sheet

Official unicode list

Authors

Taehoon Kim / @carpedm20

Kevin Wurster / @geowurster

About

emoji terminal output for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%