gbdx命令行界面。

gbdxcli的Python项目详细描述


gbdxcli包提供了一个命令行界面,以便于使用。

无需编程即可访问gbdx api。

安装

命令是“gbdx”,当您将gbdxcli包pip安装到virtualenv中时会安装该命令。

用法

注意:gbdx cli使用gbdxtools包,它要求gbdx凭据出现在用户主目录中。 要使用gbdx cli,需要gbdx凭据。通过电子邮件geobigdata@digitalglobe.com获取这些信息。

帮助和使用信息内置在工具中,使用–help开关或只是抛出错误的命令来查看它。

请注意如何遍历命令组和子命令以获得更具体的帮助。

]$ gbdx --help
Usage: gbdx [OPTIONS] COMMAND [ARGS]...

  GBDX Command Line Interface

  example:     gbdx workflow list_tasks

Options:
  --help  Show this message and exit.

Commands:
  catalog   GBDX Catalog Interface
  idaho     GBDX Idaho Interface
  ordering  GBDX Ordering Interface
  s3        GBDX S3 Interface
  s3temp    GBDX Set temporary S3 credentials
  workflow  GBDX Workflow Interface

]$ gbdx workflow --help
Usage: gbdx workflow [OPTIONS] COMMAND [ARGS]...

  GBDX Workflow Interface

Options:
  --help  Show this message and exit.

Commands:
  describe_task  Show the task description json for the task...
  list_tasks     List workflow tasks available to the user
  status         Display the status information for the...

]$ gbdx workflow describe_task --help
Usage: gbdx workflow describe_task [OPTIONS]

  Show the task description json for the task named

Options:
  -n, --name TEXT  Name of task to describe
  --help           Show this message and exit.

示例

]$ gbdx workflow list_tasks
{
"tasks": [
    "Downsample",
    "protogenRAW",
    "protogenUBFP",
    "AComp",
    "StageDataToS3",
    "FastOrtho",
    ... lots more tasks ...
]}

]$ gbdx workflow describe_task --name AComp
{
    "containerDescriptors": [
        {
            "command": "",
            "properties": {
                "image": "tdgp/acomp:latest"
            },
            "type": "DOCKER"
        }
    ],
    "description": "Runs AComp code on an input 1B image.",
    "inputPortDescriptors": [
        {
    ... more task descriptor json ...
}

开发

gbdx cli是一个单击应用程序。了解有关单击http://click.pocoo.org/5/的详细信息

安装通过项目主目录中的setup.py文件完成。查找entry_points子句。

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

推荐PyPI第三方库


热门话题
java JavaBridge errno=10054被Remotehost关闭   javafx如何在每次调用方法中的变量时更新它?(爪哇)   java mod_群集在发现后未平衡负载   Java软件编辑器/语法高亮   java为什么不能强制转换数组的结果。asList()到ArrayList?   java HIBERNATE:无法使用HIBERNATE从MySQL中提取数据   java在Google地图片段上添加布局   java在AbstractTableModel中执行setValueAt之前,我如何做一些事情?   java在整个Tomcat运行时保存变量   java如何在Thymeleaf模板中获取环境变量的值?   java Selenium Chrome驱动程序针对属性的标签   java正则表达式捕获未知数量的重复组