cloudmesh-cloud.cloudmesh.data.api.data

Cloudmesh Multi Service Data Access

Usage:

cloud data add FILE cloud data add SERVICE FILE cloud data get FILE cloud data get FILE DEST_FOLDER cloud data del FILE cloud data (ls | dir) cloud data (-h | –help) cloud data –version

Options:

-h –help Show this screen. –version Show version. –config Location of a cmdata.yaml file

Module Contents

Classes

Data

Functions

process_arguments(args)

class cloudmesh-cloud.cloudmesh.data.api.data.Data

Bases: object

config(self, config_path='~/.cloudmesh/cloudmesh.yaml')

Use cloudmesh.yaml file to configure.

ls(self)

List tracked files.

Returns

A list of CloudFiles

add(self, provider, file_path)

Add a new file

Parameters
  • provider – The storage provider where the file should be stored.

  • file_path – The local path to the file.

get(self, file_name, dest_folder='.')

Retrieve a file

Parameters
  • file_name – The name corresponding to the cloud file to be downloaded.

  • dest_folder

Returns

delete(self, file_name)

Remove a file

Parameters

file_name – The name of the file to remove.

static _print_row(file_name, service, size, url)

Print a formatted row

cloudmesh-cloud.cloudmesh.data.api.data.process_arguments(args)
cloudmesh-cloud.cloudmesh.data.api.data.arguments