monsoon-upload-cos
Add support for IBM Cloud Object Storage uploads on monsoon.
Installing
You can use pip to install from Pypi.
$ pip install monsoon-upload-cos
Using
After installing the plug-in you will be able to use the upload cos
command on monsoon.
$ monsoon upload cos --help
usage: monsoon upload cos [-h] [-e ENDPOINT_URL] [-s INSTANCE_ID]
[-u ACCESS_KEY] [-p SECRET_KEY]
[local_path] bucket remote_path
Upload a file to Cloud Object Storage.
positional arguments:
local_path path in the local file system of the file to be
uploaded
bucket target s3 bucket
remote_path path on Cloud Object Storage where the file will be
stored
optional arguments:
-h, --help show this help message and exit
-e ENDPOINT_URL, --endpoint-url ENDPOINT_URL
endpoint URL of the S3 storage
-s INSTANCE_ID, --instance-id INSTANCE_ID
service instance id
-u ACCESS_KEY, --access-key ACCESS_KEY
acccess key id of HMAC credentials
-p SECRET_KEY, --secret-key SECRET_KEY
secret access key of HMAC credentials
Development
# Setup virtual environment
$ virtualenv venv --python=python3
$ source venv/bin/activate
# Install dependencies
$ pip install -r requirements.txt
# Install the plugin itself so you test the change
$ pip install -e .
Deployment
Add the following to .pypirc at current project root. DO NOT commit this file.
[distutils]
index-servers = local
[local]
repository: <pypi_repository_url>
username: <email>
password: <api_token>
$ make publish
Author
Michael Lin <michael.lin1@ibm.com>
Metadata
Release files for monsoon-upload-cos 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| monsoon-upload-cos-0.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| monsoon_upload_cos-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / monsoon-upload-cos-0.1.0.tar.gz
| Download URL | monsoon-upload-cos-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb75461dbc595a34ac9c644a2e838bd7d5e7f8cf2c6efa2c63d54b8e25d322c7
|
|
BLAKE2b-256 checksum How to use checksums |
225f7fc3d87d5bb9351085342cf9b8a87eb615c7c4615ef9fd1de54a0d5cfd8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / monsoon_upload_cos-0.1.0-py3-none-any.whl
| Download URL | monsoon_upload_cos-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6179b74807cb73e0e7c05286974f4c8f25c1aaea3bba37f7ad716ce3ee2eabbd
|
|
BLAKE2b-256 checksum How to use checksums |
20cd0cbc8c201b90d5f51e6fecffc49c7a11949d489a4d8711dfbc248bea3a76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|