Skip to main content

Command-line interface to interact with Didimo API

Project description

Didimo CLI

Didimo CLI is a command-line interface to our API.

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

  Create, list and download didimos

Options:
  -c, --config TEXT  Use this configuration instead of the default one.
  -h, --help         Show this message and exit.

Commands:
  account   Get account information
  config    Get or set configuration
  download  Download a didimo
  execute   Execute on-demand features on didimos
  init      Initializes configuration
  list      List didimos
  new       Create a didimo
  status    Get status of didimos
  version   Print version and exit

These are the features that are implemented at the moment:

  • Create didimos, supporting different input types, package types, versions and features
  • List didimos
  • Download didimos, supporting different package types
  • Execute on-demand features on didimos
  • Supports multiple profiles as an easy way to change between environments or even accounts

Quickstart

1. Install

The CLI is written in Python 3 and is distributed as package on PyPI and can be installed with pip.

pip3 install didimo-cli
2. Configure with your API Key

Create a new configuration and input your API Key. If you do not have an API Key, please refer to the Getting an API Key section.

didimo init <configuration name>

After setting up the CLI, you can check your account with:

didimo account
3. Create a didimo

Now that the CLI is configured, let's create a didimo based on a photo.

didimo new photo <path to the photo>

The CLI waits for the didimo to be created and downloads the result in a zip file.

You can list your didimos with:

didimo list

For more help, check the documentation on each command with the --help option.

Getting an API Key

Go to the Customer Portal and register for an account.

Make sure that you tick the "Developer Account" checkbox in order to unlock the "Developers" section on the sidebar.

After that, go to "Developers" > "Applications" and create an Application and an API Key. Copy the information and paste on a text editor in order to see every detail of your credentials

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

didimo-cli-2.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

didimo_cli-2.0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file didimo-cli-2.0.0.tar.gz.

File metadata

  • Download URL: didimo-cli-2.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for didimo-cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 efaeda52d66282c1ea87770ba085d2b2570d3cbf78174ce42e1391ef6aecb96a
MD5 36fbad14322729e1f7d22c82de6f8e6b
BLAKE2b-256 b6eec5bf12922bad8ed8eb03289af93ad3f44577beb8e6b4ff2f915c6c8cf80f

See more details on using hashes here.

Provenance

File details

Details for the file didimo_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: didimo_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for didimo_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95879e52635a137849e20f222a3d6be7164927c65de21b7767c1f7263ad94515
MD5 7cf6a3dfcc3449c0571c3c78b3a5bc9b
BLAKE2b-256 804c4471313b24cb681ff2848c945ec280fca6a066d526e394bc629ae205138d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page