Skip to main content

Can't handle emoji? Use this to treat them as plain strings, according to the description provided by unicode.

Project description

Take a string with emoji in it. Convert them into their text based names.

from emoji2text import emoji2text

Take a ๐ŸŽ of emoji like ๐Ÿฅ‘, ๐Ÿ˜ž or ๐Ÿคฎ
and convert them to ๐Ÿ”  ๐Ÿ”ก
and you'll be feeling all
๐Ÿ™Œ๐Ÿพ ๐Ÿ’ช๐Ÿป ๐Ÿ‘ฉโ€๐Ÿ”ฌ ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ’ฏ ๐ŸŽŠ!
# Take a wrapped gift of emoji like avocado, disappointed face or face vomiting
# and convert them to input latin uppercase input latin lowercase
# and you'll be feeling all
# raising hands: medium-dark skin tone flexed biceps: light skin tone woman scientist man technologist hundred points confetti ball!

You can also wrap them to help differenciate each emoji like so:

emoji2text("๐Ÿ˜€๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜Ž", ":")
# :grinning face::face with tears of joy::face with tears of joy::smiling face with sunglasses:

emoji2text("๐Ÿ˜€๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜Ž", "<", ">")
# <grinning face><face with tears of joy><face with tears of joy><smiling face with sunglasses>

To install, use pip

pip install emoji2text

Only supports Python 3 and emoji version 5.0 (2017). If someone is interested in increasing support Iโ€™d be happy to look at any PR.

If you spot any errors, please create an issue with a failing input and expected result.

Only possible thanks to the very helpful grapheme module.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
emoji2text-0.1.7-py3-none-any.whl (42.7 kB) Copy SHA256 hash SHA256 Wheel py3
emoji2text-0.1.7.tar.gz (39.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page