For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
2 0 0 5

ek.set_app_key when script is run by several users

Hi all,

When same jupyter script is run by several users, all of them with their own app key, is it possible to find a way to don't need to rewrite each personal copy of the script in order to change the app key code associated to this person?

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonapp-key
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
39.3k 76 11 27

@Nabil Edriss Sánchez
I can't be sure what the purpose of your question was, so consider the following as a general statement, which may or may not be applicable to your case.
The purpose of the application key is to identify the application, not the user. If multiple users run the same script, there's no need to generate an app key for each user. Multiple users can run the same script using the same app key. When you have multiple scripts that are sufficiently different, it is advisory to generate separate key for each script. This way if a user simultaneously runs multiple scripts, and one of them is misbehaving (e.g. exhausting the data retrieval limits by sending too many requests), we can identify which of the scripts is the culprit.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 1

import eikon as ek

f = open(r"C:\Eikon_key.txt", "r")
key =f.readline()
ek.set_app_key(key)

-----------------------------------------

you can put the key into a text file and put the Eikon_key.txt file in the correct path. Eikon_key.txt just contains key. Hope it can help.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
2 0 0 5

Great. Thank you :)

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.