module remote.azure_drive

Inheritance diagram of pyenbc.remote.azure_drive

Short summary

module pyenbc.remote.azure_drive

Common API to upload, download data from Azure

Classes

class

truncated documentation

AzureDrive

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 to upload, download data from Azure

New in version 1.1.

source on GitHub

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

Bases: pyenbc.remote.cloud_transfer.CloudTransfer

defines a common API for a remote storage

New in version 1.1.

source on GitHub

constructor

Parameters
  • blob – blob storage

  • key – key

  • container – container name

  • fLOG – logging function

source on GitHub

__init__(blob, key, fLOG=None, container='backup')[source]

constructor

Parameters
  • blob – blob storage

  • key – key

  • container – container name

  • fLOG – logging function

source on GitHub

close()[source]

close the connection

source on GitHub

connect()[source]

source on GitHub

download_data(remote_path)[source]

download binary data

Parameters

remote_path – path on the remote drive

Returns

data (bytes)

source on GitHub

upload_data(remote_path, data)[source]

upload binary data

Parameters
  • remote_path – path on the remote drive

  • data – bytes

Returns

boolean

source on GitHub