module remote.cloud_transfer

Inheritance diagram of pyenbc.remote.cloud_transfer

Short summary

module pyenbc.remote.cloud_transfer

Common API for many remote drives

Classes

class

truncated documentation

CloudTransfer

defines a common API for a remote storage

Methods

method

truncated documentation

__init__

constructor

close

close the connection

connect

connect

download_data

download binary data

upload_data

upload binary data

Documentation

Common API for many remote drives

New in version 1.3.

source on GitHub

class pyenbc.remote.cloud_transfer.CloudTransfer(user, pwd, fLOG=None)

Bases: object

defines a common API for a remote storage

source on GitHub

constructor

Parameters:
  • user – user name

  • pwd – password

  • fLOG – logging function

source on GitHub

__init__(user, pwd, fLOG=None)

constructor

Parameters:
  • user – user name

  • pwd – password

  • fLOG – logging function

source on GitHub

close()

close the connection

source on GitHub

connect()

source on GitHub

download_data(remote_path)

download binary data

Parameters:

remote_path – path on the remote drive

Returns:

data (bytes)

source on GitHub

upload_data(remote_path, data)

upload binary data

Parameters:
  • remote_path – path on the remote drive

  • data – bytes

Returns:

boolean

source on GitHub