zhpy is the full feature python with chinese keywords, variables, and parameters support.
zhpy on python is good for Taiwan and China beginners to learn python in our native language.
zhpy is a lightweight python module and a chinese source convertor on python, which provides interpreter and command line tool to translate zhpy code to python. The python code written by traditional and simplified chinese could be translated and execute as nature python code.
zhpy support full python syntax. Code written in zhpy could be converted to natual python and be used in normal python programs.
zhpy provide interpreter, which allow execise zhpy and python interactivily.
zhpy provide a method ‘zh_exec’ that allow to embed chinese script in python, zhpy could be used as the chinese script in shell as well.
zhpy is fully tested, which use ~60 test cases to test the small(<10k) source.
zhpy use pyparsing module to detect chinese keywords, class name, methods, arguments, variables and translate them back to python.
It’s possible for developers to port zhpy to python on korean or python on japenese.
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
You could mix original english keywords and Chinese keywords in your zhpy source.
Reserved keywords are listed here
You could view the ChangeLog to see what’s new in these version
Metadata
Release files for zhpy 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zhpy-0.9.zip | 43.0 kB | Without provenance | Details for zhpy-0.9.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zhpy-0.9-py2.5.egg | Legacy Egg format | - | - | Details for zhpy-0.9-py2.5.egg |
Total release size: 97.5 kB
Release files / zhpy-0.9.zip
| Download URL | zhpy-0.9.zip |
|---|---|
| Size | 43.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffe5950c3d66fbbc73b8631240d1dc247f519f456600234997b0f6a315af0b94
|
|
BLAKE2b-256 checksum How to use checksums |
664d7d9e8934be86feae86d7e89b9604b46dbca93476b0a9276551433045c95b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / zhpy-0.9-py2.5.egg
| Download URL | zhpy-0.9-py2.5.egg |
|---|---|
| Size | 54.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d3b43c55d8247e90d0b0e2626abc5485f07526ec1c4cac8589b2829821666fb8
|
|
BLAKE2b-256 checksum How to use checksums |
614443d471366a13a35588027dc11dc92ee4c0d8f729c2530c83d4cb958217e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zhpy 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.