opera作用域协议的多语言代码生成器。代码是从google协议缓冲区定义生成的。

hob的Python项目详细描述


简介

hob是opera作用域协议的多语言代码生成器。它 从Google Protocol Buffer文件(.proto)生成代码,该文件描述 服务、消息、命令和事件。

作用域协议是在Opera web browser中使用的rpc系统。这允许 用于调试、检查或执行其他操作的外部和嵌入式客户端 在任何运行的opera实例上。

滚刀由以下部件组成:

  • 用于生成代码和其他输出的hob命令行工具 格式。
  • 用于处理Google Protocol Buffer定义的库。它能读 .proto文件,具有用于处理protobuf的类和函数 元素。
  • 支持可添加其他命令的第三方扩展。

依赖关系

参数解析:
http://code.google.com/p/argparse/
马科:
http://www.makotemplates.org/

如果您使用easy_install或pip安装hob 自动安装。

用法

usage: hob [-h] [-v] [--verbose] [--quiet] [-c CONFIG_FILE] [-t TARGET]
           [--project PROJECT] [-w [WARNING [WARNING ...]]] [--pdb]
           [--profile FILE]
           command ...

commands:
    xml                 Generate XML structures of protocol definitions
    proto               Generate Protocol Buffer definitions
    js                  Create service interfaces for JavaScript. If no files
                        are specified, the following files will be added in
                        the 'service' folder: console_logger.py,
                        http_logger.py, scope.py, window_manager.py,
                        ecmascript_debugger.py. Files can also be specified
                        with the service name, e.g. just ecmascript-debugger.
                        scope.py and window_manager.py will always be added.
    extensions          Lists all enabled extensions
    rst-doc             Create reST documentation of selected services. If no
                        files are specified all services are added.
    validate            Validates services, commands, events, messages and
                        fields according to the style guide
    config              Displays the current config. This is the result of all
                        loaded config and project files as well as overrides
                        from the command-line.

options:
  -h, --help            show this help message and exit
  -v, --verbose         increase verbosity
  --version             show program's version number and exit
  --quiet               be silent
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        use specific config file instead of system-wide/local
                        config files
  -t TARGET, --target TARGET
                        specify target configuration to use (overrides config
                        file).
  --project PROJECT     specifies project name or file to use (hob.project)
  -w [WARNING [WARNING ...]], --warning [WARNING [WARNING ...]]
                        enable a warning flag, pick from all, field-id-gap,
                        field-id-sequence
  --pdb                 start python debugger on exceptions
  --profile FILE        profile a command using the python profiler, writes
                        result to specified file

更改日志

请参阅顶部分发目录中的http://bitbucket.org/scope/hob/wiki/ChangelogCHANGELOG文件。

联系人

霍布是由歌剧蜻蜓队维护的。作者是:

其他帮助:

许可证

请参阅顶部分发目录中的LICENSE文件。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
打印val在Java中可以用作变量吗?   java如何以矩阵格式存储2D数组(带逗号)   java获取空的响应正文,带有Inversion2>无法填充数据   java Jackson UnrecognizedPropertyException存在时引发   java为什么我可以在非公共类中拥有公共成员?   如何在Java中从外部库导入包?   java如何从不推荐使用的日期类型替换getDate()?   java如何将数据集转换为JavaPairDD?   如何在JavaSpring中创建3d数组   合法线程操作的java定义   如何从java文本文件中读取输入   从StringArray java中的标记/单词构建句子   将UDP从Java发送到Python不起作用   java显示组织。日食xsd。XSDSchema内容