Users who don't want to expose their API key when sharing a Jupyter Notebook
Docker container with mount point /data/ to external storage (It's really painful to inject it with run command, and storing keys and tokens inside container is bad practice)
Current Way
Store a API Key
Save API Key string in a local text file, e.g.
$HOME/.quandl_apikey
or a specified file, e.g.
Use cases
/data/
to external storage (It's really painful to inject it with run command, and storing keys and tokens inside container is bad practice)Implemention
https://github.com/ulf1/updoon/blob/master/updoon/quandl_apikey.py
this would read the file with the api like
Proposal
Add
save_key
andread_key
toapi_config.py
, e.g.to do
instead of exposing the API key within a script.