module remote.azure_transfer_api

Inheritance diagram of pyenbc.remote.azure_transfer_api

Short summary

module pyenbc.remote.azure_transfer_api

API to move files

Classes

class

truncated documentation

AzureTransferAPI

defines an API to transfer files over a remote location

Methods

method

truncated documentation

__init__

retrieve

retrieve data from path

transfer

we assume a data holds in memory, tansfer data to path

Documentation

API to move files

New in version 1.1.

source on GitHub

class pyenbc.remote.azure_transfer_api.AzureTransferAPI(blob, key, fLOG=None, container='backup')[source]

Bases: pyquickhelper.filehelper.transfer_api.TransferAPI

defines an API to transfer files over a remote location

New in version 1.1.

source on GitHub

Parameters
  • blob – blob storage

  • key – key

  • container – container name

  • fLOG – logging function

source on GitHub

__init__(blob, key, fLOG=None, container='backup')[source]
Parameters
  • blob – blob storage

  • key – key

  • container – container name

  • fLOG – logging function

source on GitHub

retrieve(path, exc=True)[source]

retrieve data from path

Parameters
  • path – remove location

  • exc – keep exception

Returns

data

source on GitHub

transfer(path, data)[source]

we assume a data holds in memory, tansfer data to path

Parameters
  • data – bytes

  • path – path to remove location

Returns

boolean

source on GitHub