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.
Metadata
Release files for py-kaomoji 0.1.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_kaomoji-0.1.3.6.tar.gz | 8.3 kB | Details |
Release files / py_kaomoji-0.1.3.6.tar.gz
| Download URL | py_kaomoji-0.1.3.6.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6935fb33e818bc6f38e4f7055682a2ca5c1c27db769959da1df705ee8c1b467b
|
|
BLAKE2b-256 checksum How to use checksums |
7c8a822776d1ce2cb9d2b0cb1484cf45d6e06d56b6f1f128d1f6d612145bd820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|