emojiswitch-0.0.3
توضیحات
emoji switch
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | emojiswitch-0.0.3 |
| نام | emojiswitch |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | meiqihezi |
| ایمیل نویسنده | 18202722061@163.com |
| آدرس صفحه اصلی | https://github.com/yuanhong18/emojiswitch |
| آدرس اینترنتی | https://pypi.org/project/emojiswitch/ |
| مجوز | - |
# 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:
1. demojize :Parsing Emoji into a specific language
(delimiters: distinguish the text to be translated)
2. 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 (梅妻鹤子)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl emojiswitch-0.0.3:
pip install emojiswitch-0.0.3.whl
نصب پکیج tar.gz emojiswitch-0.0.3:
pip install emojiswitch-0.0.3.tar.gz