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')

Bases: 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')

constructor

Parameters:
  • blob – blob storage

  • key – key

  • container – container name

  • fLOG – logging function

source on GitHub

close()

close the connection

source on GitHub

connect()

source on GitHub

download_data(remote_path)

download binary data

Parameters:

remote_path – path on the remote drive

Returns:

data (bytes)

source on GitHub

upload_data(remote_path, data)

upload binary data

Parameters:
  • remote_path – path on the remote drive

  • data – bytes

Returns:

boolean

source on GitHub