Giter Club home page Giter Club logo

emotlib's Introduction

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

emotlib's People

Contributors

ancheteng avatar steven5538 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ancheteng

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.