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.
http://code.google.com/p/zhpy/wiki/ZhpyExample

Install zhpy
--------------

You could use easy_install command to install zhpy::

$ easy_install zhpy

or check instructions for detail.
* http://code.google.com/p/zhpy/wiki/DownloadInstall

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.
* http://code.google.com/p/zhpy/

check the BasicUsage_ for detail.
http://code.google.com/p/zhpy/wiki/BasicUsage

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".

* http://code.google.com/p/zhpy/wiki/ByteOfZhpy
* http://swaroopch.info/text/Byte_of_Python:Main_Page

Change Log
-------------

You could view the ChangeLog to see what's new in these version.
http://zhpy.googlecode.com/svn/trunk/CHANGELOG.txt

Project details


Download files

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

Source Distribution

zhpy-0.9.4.zip (47.2 kB view details)

Uploaded Source

Built Distribution

zhpy-0.9.4-py2.5.egg (56.0 kB view details)

Uploaded Source

File details

Details for the file zhpy-0.9.4.zip.

File metadata

  • Download URL: zhpy-0.9.4.zip
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zhpy-0.9.4.zip
Algorithm Hash digest
SHA256 fc03494d5be0fa488f2fb2748f4e865e8d29e1e7334c38654e143bea2947d84d
MD5 9a9c39c2072a4b301a3e071dfcb47074
BLAKE2b-256 45bc8ca2072716f0d0835438a59916e88d2d6062d7cffc71ee74e92e92415a8d

See more details on using hashes here.

File details

Details for the file zhpy-0.9.4-py2.5.egg.

File metadata

  • Download URL: zhpy-0.9.4-py2.5.egg
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zhpy-0.9.4-py2.5.egg
Algorithm Hash digest
SHA256 1d8880086ca174060a25b48796738e4596a18c02eafa76f45a2defbab6da9ce5
MD5 73aadf6b695d3f7e35bbfe7379576435
BLAKE2b-256 e5ba84dd6fdaf6e0b2af7373431dd0668494bcc84270665362fd9672f72a6821

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page