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(language='alias') enables both the full list and aliases.
>>> import emoji
>>> print(emoji.emojize('Python is :thumbs_up:'))
Python is 👍
>>> print(emoji.emojize('Python is :thumbsup:', language='alias'))
Python is 👍
>>> print(emoji.demojize('Python is 👍'))
Python is :thumbs_up:
>>> print(emoji.emojize("Python is fun :red_heart:"))
Python is fun ❤
>>> print(emoji.emojize("Python is fun :red_heart:", variant="emoji_type"))
Python is fun ❤️ #red heart, not black heart
>>> print(emoji.is_emoji("👍"))
True
By default, the language is English (language='en') but also supported languages are:
Spanish ('es')
Portuguese ('pt')
Italian ('it')
French ('fr')
German ('de')
Farsi/Persian ('fa')
Indonesian ('id')
Simplified Chinese ('zh')
Japanese ('ja')
Korean ('ko')
Russian ('ru')
Arabic ('ar')
Turkish ('tr')
>>> print(emoji.emojize('Python es :pulgar_hacia_arriba:', language='es'))
Python es 👍
>>> print(emoji.demojize('Python es 👍', language='es'))
Python es :pulgar_hacia_arriba:
>>> print(emoji.emojize("Python é :polegar_para_cima:", language='pt'))
Python é 👍
>>> print(emoji.demojize("Python é 👍", language='pt'))
Python é :polegar_para_cima:️
Installation
Via pip:
$ python -m pip install emoji --upgrade
From master branch:
$ git clone https://github.com/carpedm20/emoji.git
$ cd emoji
$ python -m pip install .
Developing
$ git clone https://github.com/carpedm20/emoji.git
$ cd emoji
$ python -m pip install -e .\[dev\]
$ pytest
$ coverage run -m pytest
$ coverage report
The utils/generate_emoji.py script is used to generate unicode_codes/emoji.json. Generally speaking it scrapes a table on the Unicode Consortium’s website with BeautifulSoup For more information take a look in the utils/README.md file.
Check the code style with:
$ python -m pip install ruff
$ ruff check emoji
Test the type checks with:
$ python -m pip install pyright mypy typeguard
$ pyright emoji
$ pyright tests
$ mypy emoji
$ pytest --typeguard-packages=emoji
Links
Documentation
https://carpedm20.github.io/emoji/docs/
Overview of all emoji:
https://carpedm20.github.io/emoji/
(auto-generated list of the emoji that are supported by the current version of this package)
For English:
For Spanish:
For Portuguese:
For Italian:
For French:
For German:
Maintainer
Tahir Jalilov / @TahirJalilov
Metadata
Release files for emoji 2.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emoji-2.16.0.tar.gz | 617.9 kB | With provenance | Details for emoji-2.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emoji-2.16.0-py3-none-any.whl | Python 3 | none | any | Details for emoji-2.16.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / emoji-2.16.0.tar.gz
| Download URL | emoji-2.16.0.tar.gz |
|---|---|
| Size | 617.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff9e9b1c48389ef78ed1787e7693c555e84e6bb9bac16be1fd65e1616dbf80c8
|
|
BLAKE2b-256 checksum How to use checksums |
3401a25a9c13e2f8945d06b219e08e88a5dd8a504ad1a79f872f25d6814f498c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / emoji-2.16.0-py3-none-any.whl
| Download URL | emoji-2.16.0-py3-none-any.whl |
|---|---|
| Size | 610.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4230d80640def9071599ff56b1b5950fe13a2a94c0da98c5deab12431b24330
|
|
BLAKE2b-256 checksum How to use checksums |
fd8a75e3177f374877b19dd3112820b071836ad1100f9f58424630b4783519bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logSecurity for emoji 2.16.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for emoji-2.16.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.