This PR changes how the prompt used for asking for API credentials for the various retrievals behaves.
for the cds, mars, wekeo and wekeocds sources the prompt=True keyword argument was added to from_source to enable/disable the prompt. For the other retrievals the prompt is always enabled.
when the prompt is enabled (default):
the prompt only appears when:
no API RC file exists at the default location or at the location specified via an environment variable
no credentials specified via environment variables
then the credentials specified at the prompt are written into the default RC file (e.g. for cds it is ~/.cdsapirc)
Fixes #301
This PR changes how the prompt used for asking for API credentials for the various retrievals behaves.
cds
,mars
,wekeo
andwekeocds
sources theprompt=True
keyword argument was added tofrom_source
to enable/disable the prompt. For the other retrievals the prompt is always enabled.prompt
is enabled (default):cds
it is~/.cdsapirc
)The documentation has been updated. E.g. for cds:![image](https://github.com/ecmwf/earthkit-data/assets/9033020/aa4e289f-40c8-40ec-917a-3ede8462e996)