pinyin4py

Convert hanzi to pinyin


License
BSD-3-Clause
Install
pip install pinyin4py==1.0.dev

Documentation

Build Status

$ pip install pinyin4py
from anjuke import pinyin

converter = pinyin.Converter()
converter.load_word_file('words.txt')
print converter.convert('中文测试')