🚀 Features
🔍 Emoji lookup by name, alias, unicode, hexcode, shortcode, or order
🧠 Fast emoji search by keyword, label, shortcode, or tag
🍳 Emoji Kitchen-style mashups (Google Emoji Kitchen)
🏷️ Convert between emoji and shortcode (emojize/demojize)
🧩 Emoji grouping and subgrouping
📦 Bundled emoji data, no internet required
🪄 Zero dependencies, pure Python
📖 Usage & Quick Start
from emojis import (
is_emoji, emoji_count,
get_emoji_from_name, get_emoji_from_hexcode, get_emoji_from_shortcode, get_emoji_from_order,
get_all_emojis, emojize, demojize,
get_group, get_subgroup, get_all_groups, get_all_subgroups,
emoji_kitchen, search_emojis, Emoji
)
# Check if a character is an emoji
print(is_emoji("🔥")) # True
# Count emojis in a string
print(emoji_count("I love 🍕 and 🐍!")) # 2
# Lookup emoji by name, hexcode, shortcode, or order
print(get_emoji_from_name("grinning face").emoji) # 😀
print(get_emoji_from_hexcode("1F525").emoji) # 🔥
print(get_emoji_from_shortcode("fire").emoji) # 🔥
print(get_emoji_from_order(0).emoji) # First emoji in database
# List all emojis (print only emoji characters)
all_emojis = get_all_emojis()
print([e.emoji for e in all_emojis[:5]]) # ['😀', '😃', '😄', ...]
# Convert shortcodes to emojis and vice versa
print(emojize("I am :fire:!")) # I am 🔥!
print(demojize("I am 🔥!")) # I am :fire:!
# Emoji details and grouping
emoji = Emoji("🦄")
print(emoji.label) # 'unicorn'
print(get_group(emoji).name) # Group name
print(get_subgroup(emoji).name) # Subgroup name
# List all groups and subgroups (print names)
print([g.name for g in get_all_groups()])
print([sg.name for sg in get_all_subgroups()])
# Emoji Kitchen-style combo (returns a URL)
print(emoji_kitchen(Emoji("🥲"), Emoji("😎")))
# Search for emojis by keyword, label, shortcode, or tag (print emoji characters)
print([e.emoji for e in search_emojis("cat")]) # ['🐱', '😺', ...]
📦 Included Emoji Data
This library bundles static emoji data from:
All data is included upfront — no runtime fetching or internet required 🔒
⚙️ Installation
Requires Python 3.8+ 🐍
To install the latest stable release:
# Unix / macOS 🍎🐧
python3 -m pip install "emojis.py"
# Windows 🪟
py -m pip install "emojis.py"
To install the development version:
git clone https://github.com/Ombucha/emojis.py
cd emojis.py
pip install -e .
🙌 Contributing
Contributions are welcome! If you have suggestions, bug reports, or want to add features, please open an issue or submit a pull request on GitHub.
Read the Contributing Guide for best practices.
Make sure your code is tested and documented.
Be kind and respectful in all interactions.
Thank you for helping make emojis.py better! 🎉
🔗 Links
🧪 Explore, search, and play with emojis in Python — your code just got way more expressive! 😄🎨🚀
Metadata
Release files for emojis.py 1.3.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 |
|---|---|---|---|---|
| emojis_py-1.3.0.tar.gz | 8.0 MB | Without provenance | Details for emojis_py-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emojis_py-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for emojis_py-1.3.0-py3-none-any.whl |
Total release size: 16.4 MB
Release files / emojis_py-1.3.0.tar.gz
| Download URL | emojis_py-1.3.0.tar.gz |
|---|---|
| Size | 8.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
618210f459b5642ff15c28808c797c4da513b9c3b9edacbb71fed257ed08a233
|
|
BLAKE2b-256 checksum How to use checksums |
963261aa2ea8e6e37ebda8e10e8fbd7325ed589855a7a2623a8159f01fd4169b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Release files / emojis_py-1.3.0-py3-none-any.whl
| Download URL | emojis_py-1.3.0-py3-none-any.whl |
|---|---|
| Size | 8.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e0ebf16c419cd7718df3245b44fb9f7fd90cda6f63c77ef420b27a911c872c8
|
|
BLAKE2b-256 checksum How to use checksums |
e8e9074c890b663e53dc488e7fca7d29b31f71e1a1ccc099ef62744719d19563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Security for emojis.py 1.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.