gpf_pyr_stored_data_update_from_upload.models module

Module models.

class gpf_pyr_stored_data_update_from_upload.models.NonExistingBehavior(value)

Bases : Enum

An enumeration.

ERROR = 'ERROR'
FORCE = 'FORCE'
SKIP = 'SKIP'
static names() [<class 'str'>]

List of enum names

Return [str] : list of enum names

gpf_pyr_stored_data_update_from_upload.models.check_tile_filename_format(filename: str) bool

Check if filename respect pyramid tile format

DATA_${level}_${column}_${row}.

Paramètres:

filename (str) – filename to check

Renvoie:

True if tile format, False otherwise

Type renvoyé:

bool

gpf_pyr_stored_data_update_from_upload.models.get_non_existing_param(params: GpfOrchestratorParameters) NonExistingBehavior

Get param non_existing from GpfOrchestratorParameters

Paramètres:

params (GpfOrchestratorParameters) – nom du fichier à vérifier

Renvoie:

True si format est respecté, False sinon

Type renvoyé:

NonExistingBehavior

gpf_pyr_stored_data_update_from_upload.models.get_process_size_param(params: GpfOrchestratorParameters) bool

Get param process_size from GpfOrchestratorParameters

Paramètres:

params (GpfOrchestratorParameters) – nom du fichier à vérifier

Renvoie:

True si format est respecté, False sinon

Type renvoyé:

bool

gpf_pyr_stored_data_update_from_upload.models.get_storage_pyramid_tiles(s3_client: GpfS3Client) [<class 'str'>]

Get list of pyramid tiles from storage

Paramètres:

s3_client (GpfS3Client) – S3 storage with pyramids

Renvoie:

List of pyramid tiles

Type renvoyé:

[str]

gpf_pyr_stored_data_update_from_upload.models.get_storage_size(s3_client: GpfS3Client) int | None

Get storage size from object list

Paramètres:

s3_client (GpfS3Client) – S3 storage

Renvoie:

storage size

Type renvoyé:

int