emoji switch
Project description
Emojiswitch
Emoji switch (supporting Chinese and English by set parameter lang)
Example
from emojiswitch import emojize, demojize
# word switch to emoji
print(emojize('This animal is :tiger:', delimiters=(":", ":"), lang="en")) # This animal is 🐅
print(emojize('这个动物是__老虎__', delimiters=("__", "__"), lang="zh")) # 这个动物是🐅
# emoji swith to word
print(demojize('我喜欢吃🍏', delimiters=("__", "__"), lang="zh")) # 我喜欢吃__青苹果__
print(demojize('I like eating 🍏', delimiters=("__", "__"), lang="en")) # I like eating __green_apple__
Two modes:
-
demojize :Parsing Emoji into a specific language
(delimiters: distinguish the text to be translated) -
emojize :Translate text to Emoji
(delimiters: distinguish the text to be translated)
(Note: currently only Chinese (zh) and English (en) are supported)
Installation
$ pip install emojiswitch
Authors
mieqihezi (梅妻鹤子)
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 emojiswitch-0.0.3.tar.gz.
File metadata
- Download URL: emojiswitch-0.0.3.tar.gz
- Upload date:
- Size: 71.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba99cd8c9e3067a72f2f44d65ed9491679db3c9164fcac8bd13f22c19d1c7238
|
|
| MD5 |
97c13e967e5da670d576298a48d2c672
|
|
| BLAKE2b-256 |
4e89bb1a5baf87a01bda00c4921dbd7d9b636d55d31ea8b287110983513c5821
|
File details
Details for the file emojiswitch-0.0.3-py3-none-any.whl.
File metadata
- Download URL: emojiswitch-0.0.3-py3-none-any.whl
- Upload date:
- Size: 72.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38e69a10bf90f1539fd5494793c586a4e6ae3f8bac5b93a8d07f0c4e763eca23
|
|
| MD5 |
4abfbbf1aaea47d08c9febc8099e5a35
|
|
| BLAKE2b-256 |
68ad6e91e528ac5d0e85e626a57121324afd41b1edd4a5d2a5bde21bb8681b0e
|