A small command-line tool for converting Japanese kana
Project description
kana-cli
kana-cli is a small, dependency-free command-line tool for converting
Japanese text between hiragana and katakana.
$ kana to-katakana ひらがな
ヒラガナ
$ kana to-hiragana カタカナ
かたかな
$ printf 'かな\n' | kana to-katakana
カナ
Characters outside the standard hiragana and katakana Unicode ranges are preserved.
Installation
python -m pip install kana-cli
Python API
from kana_cli import hiragana_to_katakana
hiragana_to_katakana("かな") # "カナ"
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kana_cli-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kana_cli-0.1.0.tar.gz.
File metadata
- Download URL: kana_cli-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8b4c6faf94576444f9ed3ae5eab748a113760d179e4a1b7d85091745a3a707e
|
|
| MD5 |
a60ba6825f209e81c20cc083edad4fd5
|
|
| BLAKE2b-256 |
85673af6494f4f6227e92a32106dbd06b7af393243a1eb3bd519a568b35454b2
|
File details
Details for the file kana_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kana_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bed7981c68a561897d4fb2b6f557ab1d34fa217d35d65269f66ebdf463e8b912
|
|
| MD5 |
a152535553e8227f38696c130c40d190
|
|
| BLAKE2b-256 |
a266c4c288b2ef1d0939da995f210611d2c852bf6b164e7da3e5765616e54dfa
|