aws_info_helper/s3.py
def download_file(self, bucket, filename, local_filename=''):
        """Download a file from S3

        - bucket: name of S3 bucket
        - filename: name of file (key) in S3 bucket
        - local_filename: local file name (including path) to save file as
            - if an existing directory is given, the file will be saved in there
        """
        if not local_filename:
            local_filename = basename(filename)
        elif isdir(local_filename):
            local_filename = join(local_filename, basename(filename))
        local_dir = dirname(local_filename)
        if local_dir:
            if not isdir(local_dir):
                makedirs(local_dir)
        result = self.client_call(
            'download_file',
            Bucket=bucket,
            Key=filename,
            Filename=local_filename
        )
        return local_filename
Download a file from S3

        - bucket: name of S3 bucket
        - filename: name of file (key) in S3 bucket
        - local_filename: local file name (including path) to save file as
            - if an existing directory is given, the file will be saved in there
        
Download a file from S3
bucket: name of S3 bucket
filename: name of file (key) in S3 bucket
local_filename: local file name (including path) to save file as
if an existing directory is given, the file will be saved in there
Download a file from S3 bucket : name of S3 bucket filename : name of file ( key ) in S3 bucket local_filename : local file name ( including path ) to save file as if an existing directory is given the file will be saved in there
def download_file(self, bucket, filename, local_filename=''):
        if not local_filename:
            local_filename = basename(filename)
        elif isdir(local_filename):
            local_filename = join(local_filename, basename(filename))
        local_dir = dirname(local_filename)
        if local_dir:
            if not isdir(local_dir):
                makedirs(local_dir)
        result = self.client_call(
            'download_file',
            Bucket=bucket,
            Key=filename,
            Filename=local_filename
        )
        return local_filename
def download_file ( self , bucket , filename , local_filename = '' ) : if not local_filename : local_filename = basename ( filename ) elif isdir ( local_filename ) : local_filename = join ( local_filename , basename ( filename ) ) local_dir = dirname ( local_filename ) if local_dir : if not isdir ( local_dir ) : makedirs ( local_dir ) result = self . client_call ( 'download_file' , Bucket = bucket , Key = filename , Filename = local_filename ) return local_filename
Download a file from S3
 bucket: name of S3 bucket
 filename: name of file (key) in S3 bucket
 local_filename: local file name (including path) to save file as
 if an existing directory is given, the file will be saved in there
Download a file from S3 bucket : name of S3 bucket filename : name of file ( key ) in S3 bucket local_filename : local file name ( including path ) to save file as if an existing directory is given the file will be saved in there
"""Download a file from S3

        - bucket: name of S3 bucket
        - filename: name of file (key) in S3 bucket
        - local_filename: local file name (including path) to save file as
            - if an existing directory is given, the file will be saved in there
        """
self
bucket
filename
local_filename