Write python language in chinese
zhpy is the full feature python with chinese keywords, variables, and parameters support.
zhpy on python is good for Taiwan and China beginners to learn python in our native language.
zhpy is a lightweight python module and a chinese source convertor on python, which provides interpreter and command line tool to translate zhpy code to python. The python code written by traditional and simplified chinese could be translated and execute as nature python code.
zhpy support full python syntax. Code written in zhpy could be converted to natual python and be used in normal python programs.
zhpy provide interpreter, which allow execise zhpy and python interactivily.
zhpy provide a method ‘zh_exec’ that allow to embed chinese script in python, zhpy could be used as the chinese script in shell as well.
zhpy is fully tested, which use ~60 test cases to test the small(<10k) source.
zhpy use pyparsing module to detect chinese keywords, class name, methods, arguments, variables and translate them back to python.
It’s possible for developers to port zhpy to python on korean or python on japenese.
Check examples here.
You could use easy_install command to install zhpy:
$ easy_install zhpy
or check instructions for detail.
You could use zhpy interpreter to test zhpy:
$ zhpy >>> print 'hello in chinese' hello in chinese
Browse project homepage to get examples in chinese.
check the BasicUsage for detail.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size zhpy-0.9-py2.5.egg (54.5 kB)||File type Egg||Python version 2.5||Upload date||Hashes View|
|Filename, size zhpy-0.9.zip (43.0 kB)||File type Source||Python version None||Upload date||Hashes View|