Skip to main content

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 (梅妻鹤子)

Metadata

Release files for emojiswitch 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emojiswitch 0.0.3
File Size Uploaded
emojiswitch-0.0.3.tar.gz 71.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emojiswitch 0.0.3
File Interpreter ABI Platform
emojiswitch-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 143.2 kB

Release files / emojiswitch-0.0.3.tar.gz

Download URL emojiswitch-0.0.3.tar.gz
Size 71.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ba99cd8c9e3067a72f2f44d65ed9491679db3c9164fcac8bd13f22c19d1c7238
BLAKE2b-256 checksum
How to use checksums
4e89bb1a5baf87a01bda00c4921dbd7d9b636d55d31ea8b287110983513c5821
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / emojiswitch-0.0.3-py3-none-any.whl

Download URL emojiswitch-0.0.3-py3-none-any.whl
Size 72.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e69a10bf90f1539fd5494793c586a4e6ae3f8bac5b93a8d07f0c4e763eca23
BLAKE2b-256 checksum
How to use checksums
68ad6e91e528ac5d0e85e626a57121324afd41b1edd4a5d2a5bde21bb8681b0e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page