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 based on gemoji library.
See the Emoji cheat sheet for more examples.
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
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.5.0.tar.gz
(25.1 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.5.0-py3-none-any.whl
(26.5 kB
view details)
File details
Details for the file emojis-0.5.0.tar.gz.
File metadata
- Download URL: emojis-0.5.0.tar.gz
- Upload date:
- Size: 25.1 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 |
01bbefaf5494ff3e1373108fe802c02efb1a8dae35d5b9a5ef87851418f6946c
|
|
| MD5 |
e973fbcfeeb813466a81ba1c45cc5b0d
|
|
| BLAKE2b-256 |
338ea5674f0b7c97158dbe381b67a9221b9774b8f26d914a7ab18dce4b6a0f25
|
File details
Details for the file emojis-0.5.0-py3-none-any.whl.
File metadata
- Download URL: emojis-0.5.0-py3-none-any.whl
- Upload date:
- Size: 26.5 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 |
5429741d8aa3d3e659c64b293f69f19b36d91b12961d76b4378bae27566f02b1
|
|
| MD5 |
1f29efdc05a2999e718de7321835b06b
|
|
| BLAKE2b-256 |
a6a178a02444670e9713e9f643f1f0ee8f5ba566fd6870a514af1e6f13051150
|