Skip to main content

Emoji for Python

Project description

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.

Authors

Taehoon Kim / @carpedm20

Kevin Wurster / @geowurster

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emoji-0.5.1.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

emoji-0.5.1-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file emoji-0.5.1.tar.gz.

File metadata

  • Download URL: emoji-0.5.1.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for emoji-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a9e9c08be9907c0042212c86dfbea0f61f78e9897d4df41a1d6307017763ad3e
MD5 be29f690b59727c345d0648270c78e7e
BLAKE2b-256 415a5b2cbaf1f8936e54a3756c4f0587cbe0615cd50c6b31340214ea61f92782

See more details on using hashes here.

File details

Details for the file emoji-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: emoji-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for emoji-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e959336dafc7a5ed2c0256ee587bbd38a7187d772141f0b5ba42de9e08599a8
MD5 9e170c436ae97f46740674ca6e2bdbee
BLAKE2b-256 9cfb7586e11ff9205c9be9d11d376fcb6990ec4bdfae0a35663fb1ada7e3c10f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page