Skip to main content

The gbdxcli package provides a Command Line Interface for ease of use.

Access to the GBDX API is provided without the need for programming.

Installation

The command is ‘gbdx’ and it is installed when you pip install the gbdxcli package into your virtualenv.

Usage

Note: gbdx cli uses the gbdxtools package, which requires GBDX credentials to be present in the users home dir. In order to use gbdx cli, you need GBDX credentials. Email geobigdata@digitalglobe.com to get these.

Help and usage information are built into the tool, use the –help switch or just throw bad commands to see it.

Note how you can walk through the command group and subcommands to get more specific 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.

Examples

]$ 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 ...
}

Development

gbdx cli is a Click application. Learn more about Click at http://click.pocoo.org/5/

Installation is done via the setup.py file in the project’s home dir. Look for the entry_points clause.

Release files for gbdxcli 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbdxcli 0.0.4
File Size Uploaded
gbdxcli-0.0.4.tar.gz 4.6 kB Details

Release files / gbdxcli-0.0.4.tar.gz

Download URL gbdxcli-0.0.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ccc3f9efcfdc21ff415d6e5f15ce3390f5323d8a7e2081c10ceb793cf8e4e9e4
BLAKE2b-256 checksum
How to use checksums
9a5a058c3ce11c079c03fba88251dbd925072e9f650251b6f2938ed0fe6ffe45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page