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.

Files for alice-images, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size alice_images-0.1.0-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size alice-images-0.1.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page