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='Animals & Nature')
>>> 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
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.4.0.tar.gz
(23.9 kB
view details)
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
emojis-0.4.0-py3-none-any.whl
(25.1 kB
view details)
File details
Details for the file emojis-0.4.0.tar.gz.
File metadata
- Download URL: emojis-0.4.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da0098fdaf0ef6a7ce796bfe373e39e96bf4f60affd4169cf6e49a6ed386ca3d
|
|
| MD5 |
f2c0fda34feccf24948b0e8c3a2b7be6
|
|
| BLAKE2b-256 |
ee0649eaa674ab0823147d4e357f2dd6d53a7e3144cd64fbe6c7931f00040144
|
File details
Details for the file emojis-0.4.0-py3-none-any.whl.
File metadata
- Download URL: emojis-0.4.0-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f212a6a8ee604b9a1bd3aec8e14dc078ac89d966110a1568bf1da23f99508b7
|
|
| MD5 |
9a075be02d4d384f3f27d2dbaac9b48b
|
|
| BLAKE2b-256 |
682870413aca23b584088b69109cde1bf35add8cf1479ba12e6316ee44b365c8
|