zhpy 0.2
Write python language in chinese
Latest Version: 1.7.1
zhpy is an toy convertor to translate chinese (Traditional and Simplified) python code to nature python code (english).
zhpy use pyparsing to detect chinese keywords, class name, methods, arguments, variables and translate them back to python.
zhpy refactored the origin code from HYRY.
Check examples here.
Usage
You could use zhpy instead of python in command line:
$ zhpy hello.py hello, world!
You could assign a file name to export the zhpy source to the normal python source (english):
$ zhpy hello.py nhello.py
Then run the exported file as normal python source:
$ python nhello.py hello, world!
Programming
You could mix original english keywords and Chinese keywords in your zhpy source.
Reserved keywords are listed here
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| zhpy-0.2.zip (md5) | Source | 2007-08-09 09:24:50 | 7KB | 77 | |
| zhpy-0.2-py2.5.egg (md5) | Python Egg | 2.5 | 2007-08-09 09:24:47 | 10KB | 325 |
- Author: Fred Lin <gasolin+zhpy at gmail com>
- Home Page: http://code.google.com/p/zhpy/
- License: MIT <http://www.opensource.org/licenses/mit-license.php>
- Categories
- Package Index Owner: gasolin
- DOAP record: zhpy-0.2.xml
