Skip to main content

Python emoji + emoticon Library

Project description

# emotlib: Python emoji + emoticon Library

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/emotlib.svg)](https://pypi.org/project/emotlib/)
[![PyPI](https://img.shields.io/pypi/v/emotlib.svg)](https://pypi.org/project/emotlib/)
[![Travis branch](https://img.shields.io/travis/steven5538/emotlib/master.svg)](https://travis-ci.org/steven5538/emotlib)
[![Coveralls github](https://img.shields.io/coveralls/github/steven5538/emotlib.svg)](https://coveralls.io/github/steven5538/emotlib)
[![Read the Docs](https://img.shields.io/readthedocs/emotlib.svg)](http://emotlib.readthedocs.io/en/latest/)
![PyPI - License](https://img.shields.io/pypi/l/emotlib.svg)

Installation
------------

To install emotlib, simply use [pipenv](http://pipenv.org/) (or pip, of course):
```
$ pipenv install emotlib
🍩🎉
```
Satisfaction guaranteed.

Example
-------------

Note: In python2.x, your string need to be unicode. Ex: u'I\'m :elf:'
``` python
>> import emotlib
>> print(emotlib.emoji())
🧙‍
>> print(emotlib.emoji(category='food-fruit'))
🍉
>> print(emotlib.emoji(num=3))
👨‍🚀👨‍🚀👨‍🚀
>> print(emotlib.emoji(num=3, sep= ' ~ '))
🤸 ~ 🤸 ~ 🤸 ~
>> print(emotlib.emojify('I\'m :man_technologist:'))
I'm 👨‍💻
>> print(emotlib.emojify('I\'m :man~technologist:', alias='~'))
I'm 👨‍💻
>> print(emotlib.demojify('I\'m 👨‍💻'))
I'm :man_technologist:
>> print(emotlib.demojify('I\'m 👨‍💻', alias='~'))
I'm :man~technologist:


>> print(emotlib.emoticon())
( ´ ▽ ` )ノ
>> print(emotlib.emoticon(feel='confused'))
(´−`) ンー
>> print(emotlib.emoticon(num=3))
┌(★o☆)┘┌(★o☆)┘┌(★o☆)┘
>> print(emotlib.emoticon(num=3, sep=' ~ '))
(´∇ノ`*)ノ ~ (´∇ノ`*)ノ ~ (´∇ノ`*)ノ ~
>> print(emotlib.emoticonify('I\'m a happy developer.'))
I'm a happy developer. *(*´∀`*)☆
```

Check categories & feels
```python
>> import emotlib
>> emotlib.emoji_categories
>> emotlib.emoticon_feels
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emotlib-1.0.1.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

emotlib-1.0.1-py2.py3-none-any.whl (62.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file emotlib-1.0.1.tar.gz.

File metadata

  • Download URL: emotlib-1.0.1.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for emotlib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 76c7936c338604a81f14a567d76237046d6c6e9c8dce4b5f20d7f58a9852594a
MD5 a1358dc08751b91ad905443fbe463b32
BLAKE2b-256 b068718dc221027ea4746303e7597bbf341b4a0dae8350faa951697154017765

See more details on using hashes here.

File details

Details for the file emotlib-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for emotlib-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae22f0f6e13730feac274f68bd11e18144b680582b8cfa1c7424f2777135e5f1
MD5 0ea798fc703fcd54f13e4702d9129cb9
BLAKE2b-256 e80c84990d2ddc6d278859eb17c30e348742c736eb7d3986383bdeaec4b39d38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page