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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page