Use-case:
It is a security consideration to avoid including or writing your login password credentials in python code scripts. This is tutorial example on how to use the Keyring package to store
Video Tutorial for this blog is available here:
Step1: store the password for first time
import keyring
keyring.set_password('login_XY', 'user_123', 'pass')
Step2: access to the password string in a separate script file
import keyring
keyring.get_password('login_XY', 'user_123')
result:
Related Links
- code solution script:
change the format of this file from ‘.txt’ to ‘.ipynb’ to open it as a jupyter notebook.
Check out these related tutorial in your convenient time:
- For python related tutorials, see this playlist of video tutorials: https://www.youtube.com/playlist?list=PL_b86y-oyLzAQOf0W7MbCXYxEkv27gPN6
- For statistical and econometric related tutorials, see this playlist of video tutorials: https://www.youtube.com/watch?v=aHBquefG6dQ&list=PL_b86y-oyLzDTtPT8Y1zTt4kLpdOBhxOZ