Emojis for Python
Project description
Emojis for Python
About
This library allows you to emojify content such as: This is a message with emojis :smile: :snake:
See the Emoji cheat sheet for more aliases.
Emoji database based on gemoji.
Example
>>> 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('😄 🐍 😄 🐍')
4
>>> emojis.count('😄 🐍 😄 🐍', unique=True)
2
>>> emojis.db.get_emoji_by_alias('snake')
Emoji(aliases=['snake'], emoji='🐍', tags=[], category='Nature')
>>> emojis.db.get_categories()
['Activity', 'Flags', 'Foods', 'Nature', 'Objects', 'People', 'Places', 'Symbols']
Installation
Install emojis with pip.
pip3 install -U emojis
Documentation
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emojis-0.3.1.tar.gz
(20.9 kB
view hashes)
Built Distribution
emojis-0.3.1-py3-none-any.whl
(22.1 kB
view hashes)