module remote.cloud_transfer
¶
Short summary¶
module pyenbc.remote.cloud_transfer
Common API for many remote drives
Classes¶
class |
truncated documentation |
---|---|
defines a common API for a remote storage |
Methods¶
method |
truncated documentation |
---|---|
constructor |
|
close the connection |
|
connect |
|
download binary data |
|
upload binary data |
Documentation¶
Common API for many remote drives
New in version 1.3.
- class pyenbc.remote.cloud_transfer.CloudTransfer(user, pwd, fLOG=None)¶
Bases:
object
defines a common API for a remote storage
constructor
- Parameters:
user – user name
pwd – password
fLOG – logging function
- __init__(user, pwd, fLOG=None)¶
constructor
- Parameters:
user – user name
pwd – password
fLOG – logging function
- close()¶
close the connection
- connect()¶
- download_data(remote_path)¶
download binary data
- Parameters:
remote_path – path on the remote drive
- Returns:
data (bytes)
- upload_data(remote_path, data)¶
upload binary data
- Parameters:
remote_path – path on the remote drive
data – bytes
- Returns:
boolean