data_access
- class aitoolbox.cloud.AWS.data_access.BaseDataSaver(bucket_name='model-result')[source]
Bases:
object
Base class implementing S3 file saving logic
- Parameters:
bucket_name (str) – S3 bucket into which the files will be saved
- save_file(local_file_path, cloud_file_path)[source]
Save / upload file on local drive to the AWS S3
- save_folder(local_folder_path, cloud_folder_path)[source]
Save / upload the contents of the local folder on the local drive to AWS S3
This function uploads the contents inside the provided local folder. If the encapsulating folder should also be created on the S3, specify the folder name at the end of the
cloud_folder_path
.For example if:
local_folder_path = '~/bla/my_folder'
and we want to have the content of my_folder also placed into the folder my_folder on S3 then append my_folder at the end of the cloud_folder_path:
cloud_folder_path = 'cloud_bla/my_folder'
- class aitoolbox.cloud.AWS.data_access.BaseDataLoader(bucket_name='dataset-store', local_base_data_folder_path='~/project/data')[source]
Bases:
object
Base class implementing S3 file downloading logic
- Parameters: