Work with alice skills images: upload|list|delete
Project description
Alice-images
Work with alice skills images: upload|list|delete
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 details)
Built Distribution
File details
Details for the file alice-images-0.1.0.tar.gz
.
File metadata
- Download URL: alice-images-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaaf6f6d60203137da27b3580c8df739fba32c0a5bcb4d588d6cd53a6711af3a |
|
MD5 | aa33351cf3cdfa56bfbc3236fdf0ed31 |
|
BLAKE2b-256 | 248e36829614cf63a32602d86751cc51a56b0cea2f5dfbf0bf41a0859dcf631f |
File details
Details for the file alice_images-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: alice_images-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0fb2fbdf62d0146eb87336db81f84c6a375f172bf64b8f7584da9f8061f179 |
|
MD5 | 570e87b487f1353296d1751676f84aab |
|
BLAKE2b-256 | 35c3171fed89109024bfc3bab513c01b220dcb4112c9092c3e06b8c67a8a4d1f |