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第三方库


热门话题
java Kafka producer大量内存使用(泄漏?)   java NullPointerException。。。正在插入数据但无法检索数据[Mysql DB]   java spring+jpa+hibernate=没有可用于当前线程的实际事务的EntityManager无法可靠地处理“persist”调用   getelementbyid在没有ID的情况下如何在java中使用GetElementsById   java有没有一种使用WatchService强制轮询的方法?   java将值从jframe传递给另一个jframe并使用它   Java/Groovy中带重试的反应式事件处理   具有两个包装器元素的java Jackson XML ArrayList输出   java总是在范围内使用不同的随机元素   取消选择java下拉列表值   多线程如何在Java中为对象的不同成员拥有不同的同步块   java如何使用多线程从文本文件中读取输入   java Spring启动附加崩溃命令   java使用公共或单独的actionPerfomed方法有什么区别   java用Spring3.0中的SpEL替换JSP中的EL   java作为windows服务运行应用程序时无法访问共享文件夹   java xml 1.1规范中的“解析数据”是什么意思?   以编程方式设置JComboBox索引时java触发ItemListener   java Android WebView:只加载HTML,不加载JS或CSS(在某些设备中)   Java:计算do/while循环的数量