def get_object()

in service/app/engine.py [0:0]


def get_object(bucket, object_path, local_dir):
    local_path = os.path.join(local_dir, object_path.split("/")[-1])
    s3 = boto3.client("s3")
    logging.warning(
        "Getting s3://{bucket}/{prefix}".format(bucket=bucket, prefix=object_path)
    )
    s3.download_file(bucket, object_path, local_path)
    return local_path