This is super useful video to all the Pythonistas. You can avoid displaying the secret information such as username, password, API key etc.. in the code, which is visible to everyone. Rather store them in the windows environment variable and use the OS module in python to read all those sensitive information without being displayed on the screen. Cheers !! Keep Learning and Keep Growing !!
This depends on the purpose and it will not be applicable every where. Let's say you want to share your code or show the code to someone else then , you can use this method to hide your information.
You can use it multiple scenario such as while sending email you don't have to write email ID and password, while automating social media such as twitter, Facebook or Instagram..no need to disclose user name and password in the code. Infact you can use it to hide even less sensitive information from the code.
API key is kind of authentication (imagine it to be a password kind of thing) to fetch data through the rest API. I have already made a video to use API link and key. And store this key in window environment variables. You can check out the video ua-cam.com/video/bcYKKX3ljlE/v-deo.html
API key is kind of authentication (imagine it to be a password kind of thing) to fetch data through the rest API. I have already made a video to use API link and key. And store this key in window environment variables. You can check out the video ua-cam.com/video/bcYKKX3ljlE/v-deo.html
Thanks a lot. Really helpful
great video.can we also do the same in LINUX as well?
Ofcourse
@@aipython thank you. I have contact you on your website. Please check that
Can you send an email on aipython.india@gmail.com
even my name is pranav, I got confused for a sec when it said environment variables for pranav on your screen xD
good stuff bro
keep going!
What a coincidence... I like it 🙂
What about current weather data information what we will provide values in it?
It will provide the current weather information of the location, you provide.
Do you want to know anything else??
This is super useful video to all the Pythonistas. You can avoid displaying the secret information such as username, password, API key etc.. in the code, which is visible to everyone. Rather store them in the windows environment variable and use the OS module in python to read all those sensitive information without being displayed on the screen.
Cheers !! Keep Learning and Keep Growing !!
Weel the password is in our computer device only not in others device...so what is use to hide he password...
This depends on the purpose and it will not be applicable every where. Let's say you want to share your code or show the code to someone else then , you can use this method to hide your information.
this is so annoying. I wrote the same exact code but it's not working for me
*aipython* Cool !! keep doing
What is use of this...and how it will be usefull??
You can use it multiple scenario such as while sending email you don't have to write email ID and password, while automating social media such as twitter, Facebook or Instagram..no need to disclose user name and password in the code. Infact you can use it to hide even less sensitive information from the code.
How to use API key plz give an example
API key is kind of authentication (imagine it to be a password kind of thing) to fetch data through the rest API. I have already made a video to use API link and key. And store this key in window environment variables. You can check out the video ua-cam.com/video/bcYKKX3ljlE/v-deo.html
API key is kind of authentication (imagine it to be a password kind of thing) to fetch data through the rest API. I have already made a video to use API link and key. And store this key in window environment variables. You can check out the video ua-cam.com/video/bcYKKX3ljlE/v-deo.html
👍