examples/airline-demo/airline_demo/solids.py
def download_from_s3(context):
    '''Download an object from s3.

    Args:
        info (ExpectationExecutionInfo): Must expose a boto3 S3 client as its `s3` resource.

    Returns:
        str:
            The path to the downloaded object.
    '''
    target_file = context.solid_config['target_file']
    return context.resources.download_manager.download_file_contents(context, target_file)
def download_from_s3(context):
    '''Download an object from s3.

    Args:
        info (ExpectationExecutionInfo): Must expose a boto3 S3 client as its `s3` resource.

    Returns:
        str:
            The path to the downloaded object.
    '''
    target_file = context.solid_config['target_file']
    return context.resources.download_manager.download_file_contents(context, target_file)
Download an object from s3.

    Args:
        info (ExpectationExecutionInfo): Must expose a boto3 S3 client as its `s3` resource.

    Returns:
        str:
            The path to the downloaded object.