module remote.azure_transfer_api
¶
Short summary¶
module pyenbc.remote.azure_transfer_api
API to move files
Classes¶
class |
truncated documentation |
---|---|
defines an API to transfer files over a remote location |
Methods¶
method |
truncated documentation |
---|---|
retrieve data from path |
|
we assume a data holds in memory, tansfer data to path |
Documentation¶
API to move files
New in version 1.1.
- class pyenbc.remote.azure_transfer_api.AzureTransferAPI(blob, key, fLOG=None, container='backup')¶
Bases:
TransferAPI
defines an API to transfer files over a remote location
New in version 1.1.
- Parameters:
blob – blob storage
key – key
container – container name
fLOG – logging function
- __init__(blob, key, fLOG=None, container='backup')¶
- Parameters:
blob – blob storage
key – key
container – container name
fLOG – logging function
- retrieve(path, exc=True)¶
retrieve data from path
- Parameters:
path – remove location
exc – keep exception
- Returns:
data
- transfer(path, data)¶
we assume a data holds in memory, tansfer data to path
- Parameters:
data – bytes
path – path to remove location
- Returns:
boolean