Metadata-Version: 1.0
Name: pyzshell
Version: 1.1.3
Summary: 快速构建命令行(shell)应用
Home-page: https://github.com/cedar12/zshell.git
Author: cedar12
Author-email: cedar12.zxd@qq.com
License: UNKNOWN
Description: 
        
        介绍
        ====
        
        使用zshell可快速构建命令行应用
        
        安装
        ====
        
        以下方式任选其一即可 > 方式一：pip安装
        
        .. code:: shell
        
            pip install -i https://pypi.org/project pyzshell
        
        
        开始
        ====
        
        编写第一个zshell应用
        --------------------
        
        创建helloworld.py文件 导入模块
        
        .. code:: python
        
            import zshell
        
        创建一个应用
        
        .. code:: python
        
            app=zshell.App()
        
        编写命令
        
        .. code:: python
        
            @app.shell
            def helloworld():
                return 'Hello World'
        
        运行应用
        
        .. code:: python
        
            app.run()
        
        完整代码
        
        .. code:: python
        
            #coding=utf-8
            import zshell
        
            app=zshell.App()
        
            @app.shell
            def helloworld():
                return 'Hello World'
                
            if __name__ == '__main__':
                app.run()
        
        运行helloworld.py文件
        
        
        交互式运行
        ~~~~~~~~~~
        
        python 文件.py
        
        .. code:: shell
        
            python helloworld.py
            zshell:>>helloworld
            Hello World
        
        非交互式运行
        ~~~~~~~~~~~~
        
        python 文件.py 命令 参数
        
        .. code:: shell
        
            python helloworld.py helloworld
            Hello World
        
        ``@app.shell``\ 详解
        --------------------
        
        将函数添加到zshell命令
        
        +--------+---------------------------------+----------+----------+
        | 参数   | 说明                            | 类型     | 默认     |
        +========+=================================+==========+==========+
        | name   | 命令名 使用\|可分隔多个命令名   | string   | 函数名   |
        +--------+---------------------------------+----------+----------+
        | desc   | 命令描述                        | string   | ""       |
        +--------+---------------------------------+----------+----------+
        | args   | 命令参数                        | list     | []       |
        +--------+---------------------------------+----------+----------+
        
Platform: UNKNOWN
