Refinitiv Data Library for Python

session.desktop.Definition object

The session.desktop.Definition object allows you to define the desktop session you want to create.
Desktop sessions can be defined indirectly using the name of a session defined in the configuration file or directly by specifying the app_key parameter.

Module

refinitiv.data.session.desktop

Syntax

session.desktop.Definition(name, app_key)

Parameters

Value Description Data type Optional Default value
name Name of the session in the config file. str No "workspace"
app_key Application key of the desktop session to create. str Yes None

Returned value

Not applicable

Usage

The following example demonstrates how to create a Definition object for a desktop session named “custom-session” and defined in the configuration file of the library.

import refinitiv.data as rd

definition = rd.session.desktop.Definition(name="custom-session-name")

None