A Python library to convert Chinese hanzi (汉字) to pinyin (拼音). Version 0.7.7 is the latest; the library is in maintenance mode with infrequent releases.
pip install xpinyinNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create a Pinyin instance and call get_pinyin(). The default separator is '-'.
Replace `show_tone_marks=bool` with `tone_marks='marks'` or `tone_marks=None`.
Use `splitter=''` parameter if you want no separator, or `splitter=' '` for spaces.
Convert traditional characters to simplified before calling xpinyin, or use a different library like pypinyin.
Run `pip install xpinyin` and use `from xpinyin import Pinyin`.
Use `from xpinyin import Pinyin`.
Use `tone_marks` instead (e.g., `tone_marks='marks'` or `tone_marks=None`).
No dependency data recorded yet.