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.

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


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.1.zip (43.8 kB view details)

Uploaded Source

Built Distribution

zhpy-0.9.1-py2.5.egg (55.1 kB view details)

Uploaded Source

File details

Details for the file zhpy-0.9.1.zip.

File metadata

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

File hashes

Hashes for zhpy-0.9.1.zip
Algorithm Hash digest
SHA256 d81d8232d7b583d53740156e0d0daeec7794be8ba2657b6dc07fe5d2a0f50e9a
MD5 a9e0565a3fff5b21b0fb57eed36510cb
BLAKE2b-256 2ea7bdb348d64cbfedaf57ae4e796cd283983e0039fc5088740757e676ee233a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zhpy-0.9.1-py2.5.egg
Algorithm Hash digest
SHA256 763227b2f5f17feb178d2d469838ef2379f75a562b3dd3f86b71fd5bd2d2eff3
MD5 2386091369451b52041de3f9e81cd119
BLAKE2b-256 4d326240ff41fba1b4f16c8aaa484f7e600ac8f818c3a516388b633ba9f7864b

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