3.1.1.4. karr_lab_aws_manager.s3 package

3.1.1.4.1. Submodules

3.1.1.4.2. karr_lab_aws_manager.s3.util module

class karr_lab_aws_manager.s3.util.S3Util(profile_name=None, credential_path=None, config_path=None)[source]

Bases: karr_lab_aws_manager.config.config.establishS3

del_dir(bucket_name, prefix)[source]

delete ‘directory’ in s3 bucket

Parameters
  • bucket_name (str) – name of bucket

  • prefix (str) – name of ‘directory’

download_dir(dist, bucket, local='/tmp')[source]

Download all contents in a directory in s3 bucket iteratively

Parameters
  • dist (str) – s3 directory key representation

  • bucket (str) – name of bucket

  • local (str) – local directory to store downloaded content

3.1.1.4.3. Module contents