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:
Emoji database is based on gemoji library.
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='Animals & Nature', unicode_version='6.0')
>>> emojis.db.get_categories()
{'Activities', 'Travel & Places', 'Smileys & Emotion', 'Symbols', 'Food & Drink', 'Animals & Nature', 'People & Body', 'Objects', 'Flags'}
Installation
Install emojis with pip.
pip3 install -U emojis
Documentation
Missing or wrong emoji?
This library is based on gemoji database, the official GitHub emoji library for Ruby.
If an emoji is missing or labeled wrongly, report to gemoji project. If gemoji fix it, this library will be updated as soon as there’s a new gemoji release.
All issues complaining about missing emojis will be closed.
All PRs to include custom emojis will be closed.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emojis-0.7.0.tar.gz.
File metadata
- Download URL: emojis-0.7.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f437674da878170239af9a8196e50240b5922d6797124928574008442196b52
|
|
| MD5 |
ca61ad1b25c036b8408a25d30ab51ed9
|
|
| BLAKE2b-256 |
39f09ad8cd2d3c0e89dc60f7d6b61f15ff1445935b58ddf6771bcc421b41a174
|
File details
Details for the file emojis-0.7.0-py3-none-any.whl.
File metadata
- Download URL: emojis-0.7.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a777926d8ab0bfdd51250e899a3b3524a1e969275ac8e747b4a05578fa597367
|
|
| MD5 |
e31c42ec53c54392b49f50e1b8f908d6
|
|
| BLAKE2b-256 |
92fc25e5793c0f6f09626b94444a3b9faf386c587873fa8f696ad20d37e47387
|