pi_portal.modules.integrations.archival.bases.client.ArchivalClientBase

class pi_portal.modules.integrations.archival.bases.client.ArchivalClientBase(partition_name: str)[source]

Bases: object

Archival client base class.

Parameters:

partition_name (str) – The data partition of the archival implementation.

__init__(partition_name: str) None[source]
abstract upload(local_file_name: str, archival_file_name: str) None[source]

Upload the specified file to the archival service.

Parameters:
  • local_file_name (str) – The path of the file to upload.

  • archival_file_name (str) – The archived file that will be created.

Raises:

ArchivalException