A command-line tool for uploading assets to an assets server.
Project description
This is intended to be a simple command-line tool for uploading assets to an https://assets.ubuntu.com-like assets server.
Installation
First install python3 pip, then:
sudo pip3 install canonicalwebteam.upload-assets
Usage
You should now have access to the upload-assetscommand:
$ upload-assets \
--api-url https://assets.EXAMPLE.com/v1/ \
--api-token XXXXXXXX \
~/EXAMPLE_DIRECTORY ./EXAMPLE_IMAGE.png
[
{"url": "https://assets.ubuntu.com/v1/2071d161-EXAMPLE_IMAGE.png", "filepath": "/home/robin/EXAMPLE_IMAGE.png"},
{"url": "https://assets.ubuntu.com/v1/2071d161-IMAGE1.png", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE1.png"},
{"url": "https://assets.ubuntu.com/v1/2071d161-IMAGE2.png", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE2.png"}
]
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
Close
Hashes for canonicalwebteam.upload-assets-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b6a9ee4698a5b4f2a9fdd905e2679da76fe262c318ce754b85eea89632f793 |
|
MD5 | 842ab324a3ab453f7f574eea94144e42 |
|
BLAKE2b-256 | 41c0f10e6b0107dae703611d798d28017f0c6d04c242af80e06bd3e26a804bc1 |