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子句。