LSEG Data Library for Python

Packages response

The typical response received for a package retrieval request.

Parameters

Name Description
is_success Boolean that indicates whether a request was successful.
data See Data container below.
errors A list of any errors that occur.
http_response HTTP response object, containing HTTP response data.
request_count Number of successful and failed connection attempts.
request_message HTTP request data, including headers, HTTP method, content, and so on.
closure Closure parameters that will be returned with the response.
http_status Dictionary, containing http status code and http reason.
http_headers HTTP response headers.

Data container

The data container contains the raw JSON response (if applicable), dataframe, and files object.

Name Description
raw JSON response data, received from the platform.
df Response data provided as a Dataframe.
packages Response data provided as a file_sets object.

"packages" object

The Packages response field contains the object representation of the file package itself.
It is an iterable object that contains items with the following structure:

Field name Description Data type
bucket_names Lists the names of the buckets that contain the package. List
contact_email The contact email of the package owner. Str
created The creation date of the package. Str
description The description of the package. Str
modified The last modification date of the package. Str
package_id The ID of the package. Str
package_name The name of the package. Str
package_type The type of package, for example:
"core"
Str
222 words (1:10 mins)