Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A dead-simple hiragana and katakana romanization library

Project description

A dead-simple hiragana and katakana romanization library for Python 2.7 and 3.4+.

By default, romanization is performed according to ISO 3602 Strict (Nihon-shiki) with long vowels expanded (e.g., ou or oo instead of ô):

>>> from __future__ import unicode_literals
>>> import waapuro
>>> waapuro.romanize('とおりゃんせ')
'tooryanse'

Passing the hepburnish option replaces some of the individual kana romanizations with more Hepburn-like variants:

>>> waapuro.romanize('あいづち')
'aiduti'
>>> waapuro.romanize('あいづち', hepburnish=True)
'aizuchi'

To install, just use:

$ pip install waapuro

Report bugs and make feature requests on Waapuro’s GitHub project page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for waapuro, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size waapuro-1.0.1-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size waapuro-1.0.1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page