module remote.azure_drive
¶
Short summary¶
module pyenbc.remote.azure_drive
Common API to upload, download data from Azure
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 to upload, download data from Azure
New in version 1.1.
- class pyenbc.remote.azure_drive.AzureDrive(blob, key, fLOG=None, container='backup')¶
Bases:
CloudTransfer
defines a common API for a remote storage
New in version 1.1.
constructor
- Parameters:
blob – blob storage
key – key
container – container name
fLOG – logging function
- __init__(blob, key, fLOG=None, container='backup')¶
constructor
- Parameters:
blob – blob storage
key – key
container – container name
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