Skip to main content

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.


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zhpy, version 0.9.4
Filename, size File type Python version Upload date Hashes
Filename, size zhpy-0.9.4-py2.5.egg (56.0 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size (47.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page