Write python language in chinese
Project description
zhpy is the full feature python language with fully tested chinese keywords, variables, and parameters support, independent on python version, bundle with command line tool, interpreter, pluggable keyword system and great document.
zhpy on python is good for Taiwan and China beginners to learn python in our native language.
The core of zhpy is a lightweight python module and a chinese source convertor based on python, which provides interpreter and command line tool to translate zhpy code to python. zhpy integrated a setuptools-based plugin system for keyword reuse. The zhpy code written in traditional and simplified chinese could be translated and converted to natual python code. Thus it could be execute as nature python code and be used in normal python programs.
Use ‘zhpy’ command instead of “python” in command line to execute source code wrote in Chinese and English.
zhpy provide a method ‘zh_exec’ that allow to embed chinese script in python, and zhpy could be used as the chinese script in shell as well.
Check examples here.
Install zhpy
You could use easy_install command to install zhpy:
$ easy_install zhpy
or check instructions for detail.
Usage
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.
Programming Guide
An C.C licensed zhpy book “A Byte of Zhpy”_ is in progress. You could freely view it online. The book is based on “A Byte of python”_
Change Log
You could view the ChangeLog to see what’s new in these version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zhpy-0.9.2.zip
.
File metadata
- Download URL: zhpy-0.9.2.zip
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ce1d3e1b0a7e83081ae4c48120a5ce744c625a2e4381f366012fe658ac995e |
|
MD5 | ce5676832acf0542611ef79f487f3c8b |
|
BLAKE2b-256 | 8901756cfb801106209f029f68140eaeb08b3eeaaf20ec667d90945765777079 |
File details
Details for the file zhpy-0.9.2-py2.5.egg
.
File metadata
- Download URL: zhpy-0.9.2-py2.5.egg
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42946c3744971da5b6b836b42bede1c118fcea4de419696532519d83467f927a |
|
MD5 | 708657a773fc0a5b06c56e28827a6dca |
|
BLAKE2b-256 | a5c2dc29b7ac1f81b31342affc95f4ae186149e6038f8ff51c6275af5942b5ea |