jphelper
A python library for processing your japanese learning materials.
Installation
pip install jphelper
Usage
Convert romaji to hiragana or katakana.
from jphelper import kanaize
kanaize('ohayou') # おはよう
kanaize('puroguramingu', to_katakana=True) # プログラミング
kanaize('jyoukyou') # じょうきょう
kanaize('gakkou') # がっこう
Pair kanji and its furigana.
from jphelper import match_reading
match_reading('学校', 'がっこう') # 学校[がっこう]
match_reading('青い空', 'あおいそら') # 青[あお]い 空[そら]
match_reading('すばしっこい茶色の狐', 'すばしっこいちゃいろのきつね') #すばしっこい 茶色[ちゃいろ]の 狐[きつね]
Convert arabic numeral to japanese.
from jphelper.number import to_japanese
to_japanese(3907) # さんぜんきゅうひゃくなな
to_japanese(524, use_kanji=True) # 五百二十四
to_japanese(-8437) # マイナスはっせんよんひゃくさんじゅうなな
to_japanese(0.456, decimal_limit=2) # ゼロてんよんご
to_japanese(12500, separator='、') # いち、まん、に、せん、ご、ひゃく、ゼロ
Playing with numbers.
from jphelper.number import shorten, kanji_grouping
shorten(12345678987) # 123.4億
kanji_grouping(-15124) # -1万5124
kanji_grouping(-2345678.90123, use_hiragana=True, use_minus_sign=False) # マイナス234まん5678てん90123
Metadata
Release files for jphelper 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jphelper-0.9.1.tar.gz | 7.7 kB | Without provenance | Details for jphelper-0.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jphelper-0.9.1-py3-none-any.whl | Python 3 | none | any | Details for jphelper-0.9.1-py3-none-any.whl |
Total release size: 16.7 kB
Release files / jphelper-0.9.1.tar.gz
| Download URL | jphelper-0.9.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd732159c20b494d4299a9c7478c290a3bfd9e765b00b7b1fd58aa38a46a2fbd
|
|
BLAKE2b-256 checksum How to use checksums |
c761709eb5927dc58819012ca519f5160ba11e85862b9026d364a6ced9575d4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / jphelper-0.9.1-py3-none-any.whl
| Download URL | jphelper-0.9.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c1d834ca4c7398f94b7b126333b28326cfe46801667446946185298cdb6e1c2
|
|
BLAKE2b-256 checksum How to use checksums |
6c5ec0c9e800dd142a4147c6df4e95cd03537e3543b1eeab8beabaaa6414259f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jphelper 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.