Skip to main content

Emojis for Python

Project description

Documentation Status Build Status PyPI PyPI - Python Version

Emojis for Python


This library allows you to emojify content such as: This is a message with emojis :smile: :snake:

Emoji database is based on gemoji library.

See the Emoji cheat sheet for more examples.


>>> import emojis

>>> emojis.encode('This is a message with emojis :smile: :snake:')
'This is a message with emojis 😄 🐍'

>>> emojis.decode('This is a message with emojis 😄 🐍')
'This is a message with emojis :smile: :snake:'

>>> emojis.get('Prefix 😄 🐍 😄 🐍 Sufix')
{'😄', '🐍'}

>>> emojis.count('😄 🐍 😄 🐍')

>>> emojis.count('😄 🐍 😄 🐍', unique=True)

>>> emojis.db.get_emoji_by_alias('snake')
Emoji(aliases=['snake'], emoji='🐍', tags=[], category='Animals & Nature', unicode_version='6.0')

>>> emojis.db.get_categories()
{'Activities', 'Travel & Places', 'Smileys & Emotion', 'Symbols', 'Food & Drink', 'Animals & Nature', 'People & Body', 'Objects', 'Flags'}


Install emojis with pip.

pip3 install -U emojis

Missing or wrong emoji?

This library is based on gemoji database, the official GitHub emoji library for Ruby.

If an emoji is missing or labeled wrongly, report to gemoji project. If gemoji fix it, this library will be updated as soon as there’s a new gemoji release.

All issues complaining about missing emojis will be closed.

All PRs to include custom emojis will be closed.



Project details

Download files

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

Files for emojis, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size emojis-0.6.0-py3-none-any.whl (27.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size emojis-0.6.0.tar.gz (27.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page