8000 GitHub - AnCheTeng/emotlib
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AnCheTeng/emotlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emotlib: Python emoji + emoticon Library

PyPI - Python Version PyPI Travis branch Coveralls github Read the Docs PyPI - License

Installation

To install emotlib, simply use pipenv (or pip, of course):

$ pipenv install emotlib
🍩🎉

Satisfaction guaranteed.

Example

Note: In python2.x, your string need to be unicode. Ex: u'I'm 🧝'

>> 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))
┌(★☆)┘┌(★☆)┘┌(★☆)┘
>> print(emotlib.emoticon(num=3, sep=' ~ '))
(´∇*) ~ (´∇*) ~ (´∇*) ~ 
>> print(emotlib.emoticonify('I\'m a happy developer.'))
I'm a happy developer. *(*´∀`*)☆

Check categories & feels

>> import emotlib
>> emotlib.emoji_categories
>> emotlib.emoticon_feels

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0