kyujipy
kyujipy is a Python library to convert Japanese texts from Shinjitai (新字体) to Kyūjitai, (舊字體) and vice versa.
kyujipy is based on the kyujitai.js project, originally authored by Koki Takahashi.
Installation (via Pip)
$ pip install kyujipy
Usage
In Python shell (or inside Python script):
# Import main class
>>> from kyujipy import KyujitaiConverter
# Instantiate Shinjitai <-> Kyujitai converter
>>> converter = KyujitaiConverter()
# Convert a text from Shinjitai to Kyujitai
>>> print(converter.shinjitai_to_kyujitai("新字体"))
新字體
# Convert a text from Kyujitai to Shinjitai
>>> print(converter.kyujitai_to_shinjitai("舊字體"))
旧字体
API Reference
- shinjitai_to_kyujitai(string)
Convert a text from Shinjitai (新字体) to Kyūjitai (舊字體)
- kyujitai_to_shinjitai(string)
Convert a text from Kyūjitai (舊字體) to Shinjitai (新字体)
License
kyujipy is licensed under the MIT license.
© 2017-2025 Emmanuel Ternon
Metadata
Release files for kyujipy 0.6.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kyujipy-0.6.8.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kyujipy-0.6.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / kyujipy-0.6.8.tar.gz
| Download URL | kyujipy-0.6.8.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec0b57db14a5c3a0a0bc83779b4864f42a569b03a57d9ae38fbf6face6de587a
|
|
BLAKE2b-256 checksum How to use checksums |
d8e609a59448b4f632989dbe4d5fa7eeb6d1e4413a1efd8ccceeaa9e3a339f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.3
|
Release files / kyujipy-0.6.8-py3-none-any.whl
| Download URL | kyujipy-0.6.8-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29a65d7dbecda9a8842d141eb05090025a28f2677b51b3845fc21e579db1b6e2
|
|
BLAKE2b-256 checksum How to use checksums |
83a6c8f3cee03b9be95292f332ac7c0b571f50ad3f67a3f5f00fac0e43f4f90b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.3
|