Skip to main content

Work with alice skills images: upload|list|delete

Project description

Alice-images

Work with alice skills images: upload|list|delete

Yandex docs

Usage

In code

from alice_images import upload_image

upload_image(
    skill_id='<skill_id>',
    oauth_token='<oauth_token>',
    image='https://<image_url>/'  # or path '/tmp/image.jpg'
)

CLI

Upload by url:

alice_images --skill_id '<skill_id>' --oauth_token '<oauth_token>' upload 'https://<image_url>/'

Upload by path:

alice_images --skill_id '<skill_id>' --oauth_token '<oauth_token>' upload '/tmp/image.jpg'

For more info use --help:

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

Options:
  --skill-id TEXT     Alice skill id  [required]
  --oauth-token TEXT  Account OAuth token  [required]
  --help              Show this message and exit.

Commands:
  delete
  list
  status
  upload

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
alice_images-0.1.0-py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel py3
alice-images-0.1.0.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page