LSEG Data Library for Python

cfs.file_downloader.Definition object

The cfs.file_downloader.definition object describes a specific file inside the bucket.

Module

lseg.data.delivery.cfs.file_downloader

Syntax

cfs.file_downloader.Definition(file)

Parameters

Value Description Data type Optional Default value
file Dictionary or file object that contains the file ID and file name. dict or file object No -

Returned value

cfs.file_downloader.Definition object

Usage

The following example demonstrates how to create a specific file definition for further retrieval:

from lseg.data.delivery import cfs


definition = cfs.file_downloader.Definition(
    {
        "id": '47f2-6a49-d66f59d3-af41-87e767427ae2',
        "filename": 'Bulk-ESG-Global-Symbology-Cusip-v1-Init-2023-02-05T10:31:37.481Z.jsonl.gz' 
    }
)

None

54 words (0:17 mins)