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
  vertexdeform  Deform a model
  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

If you already have a previous version installed, you should execute:

pip3 install didimo-cli --upgrade
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.

Generating a didimo may include several options, as described on our developer portal.

Didimo CLI currently accepts the following features (-f):

  • oculus_lipsync
  • simple_poses
  • arkit
  • aws_polly

The CLI accepts following output formats (-p):

  • glTF
  • FBX

In addition to those, it also accepts the definition of other parameters:

  • the maximum texture dimension (-m)
  • avatar_structure (--avatar_structure)
  • garment (--garment)
  • gender (--gender)

Input type accepts:

  • photo
  • rgbd

Please check all the options and accepted values using the command below.

didimo new --help

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.2.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

didimo_cli-2.2.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: didimo-cli-2.2.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for didimo-cli-2.2.0.tar.gz
Algorithm Hash digest
SHA256 7e2723451742fe3ecc14f109c59093e948b2fb4d68379d29f1781b26029e046a
MD5 c07cbff8d687031260690dc1bd27da4f
BLAKE2b-256 f83f4bd8aeb5faeacb18581782c1cb42b64207ad6ea5f68080bbcef4b2038f05

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: didimo_cli-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for didimo_cli-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0de003461a488c28836b1b9f37ecb99cffedd7ea73edfc2c21f92a47e68a9d3
MD5 89bf46e4e46651cbf24be1d686c4ec49
BLAKE2b-256 e1e807a362dfc525e9d04ace7a59320ff97cb940c1e9a8092a136979e0430b1a

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