Metadata-Version: 1.0
Name: zhpy
Version: 0.6
Summary: Write python language in chinese
Home-page: http://code.google.com/p/zhpy/
Author: Fred Lin
Author-email: gasolin+zhpy@gmail.com
License: MIT <http://www.opensource.org/licenses/mit-license.php>
Description: zhpy is the *python on Chinese*,
        which is good for Taiwan and China beginners to learn python in our native language.
        
        zhpy is a lightweight python module and a source convertor, which provides a command line
        tool to translate python code. The python code written by traditional and simplified
        chinese could be translated to nature python code (english).
        
        zhpy support full python syntax. Code written in zhpy could be converted to natual python and
        be used in normal python programs.
        After 0.5, zhpy provide a method 'zh_exec' that allow to embed chinese script in python
        After 0.6, you could use zhpy as the chinese script in shell as well.
        
        zhpy is fully tested which use ~50 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.
        
        .. _examples: "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.
        
        .. _instructions: "http://code.google.com/p/zhpy/wiki/DownloadInstall"
        
        Usage
        -----
        
        You could use interpretor to test zhpy with zh_exec_ method::
        
        $ python
        >>> from zhpy import zh_exec
        >>> zh_exec("print hello") # execute zhpy here, pypi not allow non ascii code.
        hello
        
        .. _zh_exec: http://code.google.com/p/zhpy/wiki/EmbededInPython
        
        You could use 'zhpy' command instead of "python" in command line to
        execute source code mixed in Chinese and English.::
        
        $ zhpy hello.py
        hello, world!
        
        You could assign a file name to export the zhpy source to the normal python source (english)::
        
        $ zhpy hello.py n_hello.py
        
        Then run the exported file as normal python source::
        
        $ python n_hello.py
        hello, world!
        
        Or you could combine these two steps in one command (with '-p' option)::
        
        $ python -p hello.py
        hello, world!
        $ ls
        hello.py n_hello.py
        
        check the BasicUsage_ for detail.
        
        .. _BasicUsage: "http://code.google.com/p/zhpy/wiki/BasicUsage"
        
        Programming
        -----------
        
        You could mix original english keywords and Chinese keywords in your zhpy source.
        
        Reserved keywords are listed here_
        
        .. _here: http://code.google.com/p/zhpy/wiki/KeyWords
        
        You could view the ChangeLog_ to see what's new in these version
        
        .. _ChangeLog: http://zhpy.googlecode.com/svn/trunk/CHANGELOG.txt
        
        
Keywords: traditional,simplified,chinese
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Code Generators
