Skip to content

Python emoji + emoticon Library (<ゝω・)β˜† πŸ‘¨β€πŸš€πŸ‘©β€πŸš€

License

Notifications You must be signed in to change notification settings

steven5538/emotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 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

Python emoji + emoticon Library (<ゝω・)β˜† πŸ‘¨β€πŸš€πŸ‘©β€πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages