Skip to main content

Write python language in chinese

Project description

Introduction
-------------

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

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 available on site.
You could freely view it online.
* http://code.google.com/p/zhpy/wiki/ByteOfZhpy

The book is based on "A Byte of python".
* http://swaroopch.info/text/Byte_of_Python:Main_Page

There's the API document available in zhpy download list, too.
* http://code.google.com/p/zhpy/downloads/list

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-1.1.1.zip (54.8 kB view details)

Uploaded Source

Built Distribution

zhpy-1.1.1-py2.5.egg (59.1 kB view details)

Uploaded Source

File details

Details for the file zhpy-1.1.1.zip.

File metadata

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

File hashes

Hashes for zhpy-1.1.1.zip
Algorithm Hash digest
SHA256 2a5e9bcf352736ec7ff22f7c0b5288a1e0a2a00e42409eb88458471454025e9e
MD5 2bb2f83d51b27e03e4ea8521647a31f2
BLAKE2b-256 44e4dd15a18267d2723c9b21bb5cd51484fecd9d081f9b621877462afd852697

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zhpy-1.1.1-py2.5.egg
Algorithm Hash digest
SHA256 ca76475185fe8f184986d1073fa2a233e062591c5c9ae36673607bd125b28594
MD5 004e00d27a037032dab26d3af1ec6c38
BLAKE2b-256 7c0cf0e600072dd4d64963222c7c55e9492b7c79d3e05427e6ae9bcb49f39876

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