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 details)

Uploaded Source

File details

Details for the file py_kaomoji-0.1.3.6.tar.gz.

File metadata

  • Download URL: py_kaomoji-0.1.3.6.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for py_kaomoji-0.1.3.6.tar.gz
Algorithm Hash digest
SHA256 6935fb33e818bc6f38e4f7055682a2ca5c1c27db769959da1df705ee8c1b467b
MD5 bf5169187f67cdb438c41a4adafe7deb
BLAKE2b-256 7c8a822776d1ce2cb9d2b0cb1484cf45d6e06d56b6f1f128d1f6d612145bd820

See more details on using hashes here.

Supported by

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