New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emoticon

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoticon

python package to transform any emoticon to text or its meaning

  • 1.0.5
  • PyPI
  • Socket score

Maintainers
1

Emoticon

Emoticon is a Python package to transform or translate emoticon into text or its meaning. Based on list of emotion in wikipedia, i created a library for text mining. This package contain western and eastern emoticon with over 300 emoticon. This package can also translate emoticon into desired language by adding optional argument.

How to install

pip install emoticon

Usage

Following code will show you example how to use this package

From text to emoticon :

from emoticon import emoticon

text = ":) :("
emoticon(text)

Output : "Smile Sad"

You can also specify the desired language by adding optional argument, for example if you want to return indonesian language, use 'id' as optional parameter.

from emoticon import emoticon

text = ":) :("
emoticon(text, 'id')

Output : "Senyum Sedih"

if you don't specify, it will return english by default.

From emoticon to text :

from emoticon import demoticon

text = "Smile Sad"
demoticon(text)

Output : ":) :("

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc