All Projects → alexmick → emoji-data-python

alexmick / emoji-data-python

Licence: MIT license
Emoji toolkit for python. Parse emoji from colons and much more...

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to emoji-data-python

react-native-emoji-input
A fully-featured emoji keyboard ⌨️ for React Native ⚛️
Stars: ✭ 67 (+71.79%)
Mutual labels:  emoji
yii2-emoji
😄 this is a emoji extension of yii2.
Stars: ✭ 17 (-56.41%)
Mutual labels:  emoji
gitmoji-intellij-plugin
Intellij plugin for add a button on the commit dialog to add gitmoji
Stars: ✭ 35 (-10.26%)
Mutual labels:  emoji
emoji-sentiment
Emoji sentiment data
Stars: ✭ 14 (-64.1%)
Mutual labels:  emoji
pytest-emoji
A pytest plugin that adds emojis to your test result report 😍
Stars: ✭ 41 (+5.13%)
Mutual labels:  emoji
emojibot
A Slack bot that joins the conversation with emojis.
Stars: ✭ 22 (-43.59%)
Mutual labels:  emoji
loading-indicator
🚦 Simple and customizable command line loading indicator
Stars: ✭ 18 (-53.85%)
Mutual labels:  emoji
emojimix
🤖 emojimix implemented in Svelte 🤖
Stars: ✭ 24 (-38.46%)
Mutual labels:  emoji
kordx.emoji
Extension Library for Kord that provides all supported Discord emojis
Stars: ✭ 20 (-48.72%)
Mutual labels:  emoji
cz-gitmoji
🔬😜 Commitizen adapter for gitmoji.
Stars: ✭ 25 (-35.9%)
Mutual labels:  emoji
scrift
New generation shell and scripting language for everyone.
Stars: ✭ 46 (+17.95%)
Mutual labels:  emoji
vuemoji-picker
Vue 2 and 3 lightweight emoji picker.
Stars: ✭ 53 (+35.9%)
Mutual labels:  emoji
g-emoji-element
Backports native emoji characters to browsers that don't support them by replacing the characters with fallback images.
Stars: ✭ 112 (+187.18%)
Mutual labels:  emoji
ChineseBQB-client
🤣 开源表情包小程序
Stars: ✭ 81 (+107.69%)
Mutual labels:  emoji
react-emoji-input
😂 Emoji suggestions like the textareas in GitHub
Stars: ✭ 29 (-25.64%)
Mutual labels:  emoji
emoji-strip
Strip emoji from a string in Node.js and browsers.
Stars: ✭ 73 (+87.18%)
Mutual labels:  emoji
uni-chat
uni-app + vue3.0 + typescript + vue-cli 仿手机QQ聊天 qq表情包
Stars: ✭ 55 (+41.03%)
Mutual labels:  emoji
WeiboEmoji
Weibo Emoji is a repository for saving and sharing most Emoji images that are used/were previously used by the app Weibo.
Stars: ✭ 17 (-56.41%)
Mutual labels:  emoji
ansi-to-svg
😹 convert ANSI Escaped CLI strings to SVGs
Stars: ✭ 18 (-53.85%)
Mutual labels:  emoji
slackmoji
A collection of 1,000+ popular emoji for Slack and Discord
Stars: ✭ 90 (+130.77%)
Mutual labels:  emoji

emoji_data_python - A python emoji toolkit

CI pipeline PyPI Documentation Status

Forget about handling obscure shortcodes from slack or user input, this lib knows all about them !

Features

  • Conversion from slack-style colon short codes : :smiley:😃
  • Lookup emoji by official name or any known short name
  • Render emoji chars from their codepoint

Installing

Installation should be as simple as :

pip install emoji_data_python

Usage

>>> import emoji_data_python
>>> len(emoji_data_python.emoji_data)
1489
>>> emoji_data_python.emoji_short_names['hearts'].__dict__
{
    'name': 'BLACK HEART SUIT',
    'unified': '2665',
    'variations': ['2665-FE0F'],
    'docomo': 'E68D',
    'au': 'EAA5',
    'softbank': 'E20C',
    'google': 'FEB1A',
    'image': '2665.png',
    'sheet_x': 1,
    'sheet_y': 34,
    'short_name': 'hearts',
    'short_names': ['hearts'],
    'text': None,
    'texts': None,
    'category': 'Symbols',
    'sort_order': 245,
    'added_in': '1.1',
    'has_img_apple': True,
    'has_img_google': True,
    'has_img_twitter': True,
    'has_img_emojione': True,
    'has_img_facebook': True,
    'has_img_messenger': True,
    'skin_variations': {},
    'obsoletes': None,
    'obsoleted_by': None
}
>>> emoji_data_python.find_by_shortname('moon')
[
    EmojiChar("NEW MOON SYMBOL"),
    EmojiChar("WAXING CRESCENT MOON SYMBOL"),
    EmojiChar("FIRST QUARTER MOON SYMBOL"),
    EmojiChar("WAXING GIBBOUS MOON SYMBOL"),
    EmojiChar("FULL MOON SYMBOL"),
    EmojiChar("WANING GIBBOUS MOON SYMBOL"),
    EmojiChar("LAST QUARTER MOON SYMBOL"),
    EmojiChar("WANING CRESCENT MOON SYMBOL"),
    EmojiChar("CRESCENT MOON"),
    EmojiChar("NEW MOON WITH FACE"),
    EmojiChar("FIRST QUARTER MOON WITH FACE"),
    EmojiChar("LAST QUARTER MOON WITH FACE"),
    EmojiChar("FULL MOON WITH FACE"),
]
>>> [ (emoji.name, emoji.short_name, emoji.char) for emoji in emoji_data_python.find_by_name('tree')]
[
    ('EVERGREEN TREE', 'evergreen_tree', '🌲'),
    ('DECIDUOUS TREE', 'deciduous_tree', '🌳'),
    ('PALM TREE', 'palm_tree', '🌴'),
    ('CHRISTMAS TREE', 'christmas_tree', '🎄'),
    ('TANABATA TREE', 'tanabata_tree', '🎋')
]
>>> emoji_data_python.replace_colons('Hello world ! :wave::skin-tone-3: :earth_africa: :exclamation:')
'Hello world ! 👋🏼 🌍 ❗'

Documentation

Documentation is autogenerated by Sphinx. With the right dependencies you should be able to build the docs :

cd docs/
pip install -r requirements.txt # Install sphinx and its plugins
make html
cd _build/html
python -m SimpleHttpServer # Serve the docs on localhost:5000

A pre-built hosted version is available here : http://emoji-data-python.readthedocs.io/en/latest/

Testing

python -m unittest discover
Thanks to iamcal for the complete emoji data. This project is merely a python wrapper for his work.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].