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.

Source Distribution

alice-images-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

alice_images-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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