opera作用域协议的多语言代码生成器。代码是从google协议缓冲区定义生成的。
hob的Python项目详细描述
简介
hob是opera作用域协议的多语言代码生成器。它 从Google Protocol Buffer文件(.proto)生成代码,该文件描述 服务、消息、命令和事件。
作用域协议是在Opera web browser中使用的rpc系统。这允许 用于调试、检查或执行其他操作的外部和嵌入式客户端 在任何运行的opera实例上。
滚刀由以下部件组成:
- 用于生成代码和其他输出的hob命令行工具 格式。
- 用于处理Google Protocol Buffer定义的库。它能读 .proto文件,具有用于处理protobuf的类和函数 元素。
- 支持可添加其他命令的第三方扩展。
依赖关系
如果您使用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/Changelog或CHANGELOG文件。
联系人
霍布是由歌剧蜻蜓队维护的。作者是:
- 简·博索迪,jborsodi@opera.com>;
- 克里斯蒂安·克雷布斯,chrisk@opera.com>;
其他帮助:
- 约翰内斯·霍夫,jhoff@opera.com>;
- 符文halvorsen<;runeh@opera.com>;
- 安德斯·哈特沃尔·鲁德,andersr@opera.com>;
许可证
请参阅顶部分发目录中的LICENSE文件。