Skip to main content

Backwork plug-in for IBM Cloud Object Storage uploads.

Project description

monsoon-upload-cos

Add support for IBM Cloud Object Storage uploads on monsoon.

Installing

You can use pip to install this plug-in directly from GHE:

$ pip install git+ssh://git@github.ibm.com/apset/monsoon-upload-cos

Or you can use pip to install from Pypi repository at Artifactory

Add the following to ~/.pip/pip.conf

[global]
extra-index-url = https://<email>:<api_token>@<pypi_repository_url>
$ 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>

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

backwork-upload-cos-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

backwork_upload_cos-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file backwork-upload-cos-0.1.0.tar.gz.

File metadata

  • Download URL: backwork-upload-cos-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for backwork-upload-cos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b96adb33e97494375acac220c41b47c04bb3ab9985a201e20582d284ab73de4
MD5 1fb30648c14a11352ca52de955342382
BLAKE2b-256 1b3bca061eed3c8a32a590714e3bfe662ead90178cec2d991697f7de1f4df21d

See more details on using hashes here.

File details

Details for the file backwork_upload_cos-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: backwork_upload_cos-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for backwork_upload_cos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1805daef4163a468a6261f95e15c8a6a2a8c5d5c72fb6f05a1853450de8e89
MD5 70233e01b1bd61f26390f49b4e70767a
BLAKE2b-256 b9abc8e92b119ae30fd28b5941d608ebfe2b55ff95fd25fc54bc18f12aabd7ca

See more details on using hashes here.

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