pybliometrics-dev/pybliometrics

Set API Key at runtime (through code)

claell opened this issue · 4 comments

claell commented

pybliometrics version: 3.5.2

Affected classes: ?

Expected behavior: I want the ability to set the required information for this package to run through code. That way, it can be ensured to for example easily run correctly on multiple machines.

Related: #161, #231

claell commented

A workaround that I now use is to specify the location of the config file to be inside the project folder. Thus, it can for example be versioned through git and synchronized across devices.

claell commented

But that says "Setting the keys at runtime is however not possible."

I assume that means the API keys can't be set at runtime, right?