LSEG Data Library for Python

get_data

The get_data function is used to send a request to the Client File Store (CFS) to retrieve the buckets described in the cfs.buckets.Definition object.

Module

lseg.data.delivery.cfs.buckets

Syntax

get_data(session)

Parameters

Value Description Data type Optional Default value
session Session object. If this is not passed, the default session will be used. Session object Yes None

Returned value

Response

Usage

The following example demonstrates how to retrieve all the buckets with names containing "esg":

from lseg.data.delivery import cfs

response = cfs.buckets.Definition(name="esg").get_data()

print(response.data.df.to_string())

This example produces the following output:

Response
            created         availableFrom  restricted          name                                    description             publisherName              modified  private                  attributes

0 2020-08-18T08:49:02Z 2020-08-18T08:49:02Z False ESG Bulk feeds containing ESG data ESG 2022-06-09T09:22:00Z False [ContentType, ResultCount]
1 2021-06-15T15:24:09Z 2021-06-15T15:24:09Z False rft-bulk-esg Bulk feeds containing ESG data ESG 2022-06-09T09:22:07Z False [ContentType, ResultCount]
2 2021-11-14T10:30:05Z 2021-11-14T10:30:05Z False bulk-ESG CFS bucket created automatically in bulk core edpbulkdev@refinitiv.com 2022-06-09T09:22:17Z False [ContentType, ResultCount]

About CFS

115 words (0:36 mins)