(gcs_base_path, filename)
return local_path
Download file from Google Cloud Storage (GCS).

    Args:
        gcs_base_path: (str) GCS bucket path
        filename: (str) Filename of the file to download

    Returns:
        (str) Path to downloaded file
Download file from Google Cloud Storage (GCS).
Download file from Google Cloud Storage ( GCS ) .
def download_from_gcs(gcs_base_path, filename):
    """Download file from Google Cloud Storage (GCS).

    Args:
        gcs_base_path: (str) GCS bucket path
        filename: (str) Filename of the file to download

    Returns:
        (str) Path to downloaded file
    """
    storage_client = storage.Client(args.project)
    bucket = storage_client.get_bucket(args.bucket)
    gcs_full_path = os.path.join(gcs_base_path, filename)
    local_path = os.path.join(args.output, filename)
    blob = bucket.blob(gcs_full_path)
    blob.download_to_filename(local_path)
    logger.info('Downloaded file from GCS: {}'.format(local_path))
    return local_path
def download_from_gcs ( gcs_base_path , filename ) : storage_client = storage . Client ( args . project ) bucket = storage_client . get_bucket ( args . bucket ) gcs_full_path = os . path . join ( gcs_base_path , filename ) local_path = os . path . join ( args . output , filename ) blob = bucket . blob ( gcs_full_path ) blob . download_to_filename ( local_path ) logger . info ( 'Downloaded file from GCS: {}' . format ( local_path ) ) return local_path