Skip to main content

This is a Kaomoji library for Python for Japanese.

Project description

py-kaomoji

Kaomoji library for Python

What's py-kaomoji

This is a Kaomoji library for Python for Japanese. You can find some cute kaomojis.

Getting started

Install with pip.

pip install py-kaomoji

How to use

Let's start with importing kaomoji library.

from kaomoji import kaomoji

You can get a random kaomoji string with kao().

kao = kaomoji.Kaomoji()
kao()
> '(ヾノヾノヾノヾノヾノ・ω・`)ヾノジェットストリームナイナイ'

Or, you can get several random kaomojis with random_kaomoji().

kao.random_kaomoji(n=3)
> 'ピース(≧▽≦)v ⊂⌒っ´ーωー)っ.。o○ (⊃д∩)'

You can also specify your kaomoji emotion.

kao.kaomoji("たのしい")
> "たのしい!✌('ω'✌ )三✌('ω')✌三( ✌'ω')✌"

The list of emotions you can express can be found with get_kao_list().

kao.get_kao_list()
> 'あおり',
> 'あげ',
> 'あせ',
> 'あたふた',
> ...

If you feel like you need a party, you can run super_kaomoji().

kao.super_kaomoji()
> 'てへぺろ!(*ゝωб) (((o(*゚▽゚*)o))) (´っω-).。oO ・゚・(ノд<)・゚・ ウェ―ン (〃l _ l) ヽ(。ゝω・)ノ (>ヮ<*) =͟͟͞͞ (¦3[▓▓]'

If you don't think it's good enough, then just get all_kaomoji().

kao.all_kaomoji()
> !!!!!!!!!!!!!!!

License

This sample code is licensed under the MIT License.

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

py_kaomoji-0.1.3.6.tar.gz (8.3 kB view hashes)

Uploaded Source

Supported by

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