Python Tutorial: Securely Manage Passwords and API Keys with DotEnv
HTML-код
- Опубликовано: 11 сен 2024
- In this Python Programming video, we will be learning how to properly manage sensitive information within our scripts. We never want to add passwords, API Keys, Database information, or any other sensitive information directly to our code that others will be able to see. Instead, we want to store these away in Environment Variables. Python-DotEnv simplifies this process and makes it simple to do. Let's get started...
GitIgnore Generation API: www.toptal.com...
Environment Vars (Mac and Linux) Tutorial - • Python Quick Tip: Hidi...
Environment Vars (Windows) Tutorial - • Python Quick Tip: Hidi...
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com...
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python
The legend is back 🙌. I learned everything I know about Python from you ~6 years ago.
i concur outrightly... This legend kept dishing out knowledge in python like the Nigerian jollof... Welcome back LEGEND...
Has it been like 12 years? You know you basically taught me a whole lot of python of the years....
im new to python how long it took u to be fluent at it
@@ExploitGodzdepends on a number of factors. Do you already know the general programming concepts and even another language? How often do you use python, how complex are you getting when using the language? Overall it just takes time, you’ll get good eventually 😊.
God is back
Lol wtf 😂😂
Gos is god
😂😂
I’ve been waiting so long for his videos and then when I found out it his disappearance was bc of his personal health issues, I have to say - the GOAT IS BACK!! I legit learned how to program Python from his channel. Anyone who is new here, you’re in good hands. Personally, this type of content doesn’t matter to me anymore but going back to the beginning of the learning process I can say without a doubt he’s the GOAT.
Wrong address
Never clicked a video faster, love the tutorials Corey! I'm assuming dotenv is not recommended for production?
It all depends on the specifics of your production environment. If you're operating on a dedicated server for a specific application, you can directly set the environment variables there. Similarly, if you're using containerization solutions like Docker, environment variables can be defined within your Docker configurations. Platforms like AWS and Azure provide their own methods for secure environment management.
The short answer is: 'It depends.' I've personally used DotEnv for smaller or personal projects without any issues, and it's exceptionally useful for local development. However, it is true that there are more secure and scalable options available for more complex systems. It all depends on your needs.
@@coreyms request python tutorial 2024 for beginners to experts. Python has been updated 8 years ago. There are definitely lots of changes and lots of tricks to master. please give us all the learning about python from beginning to expert.
I learnt 90% of python stuff thanks to your videos, it is awesome to see you back!
Been using dotenv for a while now snd i still managed to learn something new, Corey you're a legend!!
great to see you back...made a career from previous videos....the entire pandas series shot up my data science career and has enabled me start and run my company...kudos corey
i started my programming with you and you are still the best teacher, your code is very simple to read but very clean. i wish someday i can write like you my friend
Glad to see you’re back Corey
I already knew about .env and stuff, but I still watched this video because I started learning Python from you and I was expecting something new to learn from this video, that's where I found variable expansion. I was already aware of variable expansion concepts, but I didn't know that it can be used in .env file.
I'll always be thankful to you, because I started learning from this channel and today I'm a Software Engineer.
So great to see you back, Corey. You are an amazing teacher
Just finished your django series Corey! And waking upto your notification made my day.
Waiting for future tutorials, that you promised in this video - liked that part most of all. Variable expansion was very new to me. Please do more videos. You are one of the best! Thank you!
Good to see you back! Would love to see videos on the latest Python advanced features in future.
Welcome back.. You are one reason to get a job in IT world... Please make more Video...
Everything I know about flask and django, I learnt from the legend himself Corey Schafer.
Thanks a lot for all you do
Managing passwords and API keys securely is crucial, and DotEnv seems like the perfect solution. Thanks for breaking it down step by step - we are sure it will be useful for many users!
Your videos ignited my passion for Python! Thank you immensely for sharing your knowledge. Please keep them coming; they're invaluable. Sending heaps of love from India!"
Happy to see you back!
The legend is back!
Good to see you back again 🙂, few days back i was trying to find ways to store db username and password in a secured way , your tutorial came just in right time for me, thanks a lot
Have been using this already, just wanted to watch a new video by Corey anyways. And as expected, I did learn some new things! Thanks as always!
He is BACK !!!
The man, the Legend!
Thank you for all your contribution to the Python community, Sir!
❤❤❤
It's been a long time since your last upload, glad you're back Corey!
welcome back Corey! missed your uploads :D
Finally, you have another new video sir. Your videos are the best.
So pleased that you are back. Does order matter for variable expansion in .env file e.g., USERNAME to be defined above EMAIL?
I use the standard module configparser for this purpose; it does practically the same without having to install additional dependencies.
u r the reason why i have started programming , u r my god , glad to see you back
So glad to see you making videos again!
THE GOAT IS BACK. HE HAS COOKED.
You are back I was looking for you for a long time and I want to thank you for the awesome work
Great content as always. Thank you Corey!
Let's keep the momentum 🔥
Man it felt so good hearing your voice again. Hope you stay in the best of health and keep blessing us with such content.:)
Welcome Back Corey. Everything i know in python is from you
I knew all this but watched nonetheless because Corey taught me codeing years ago and I was nostalgic haha
That’s what I’m talking about. It makes my day to see you back bro 🤘🏼
Corey, thanks for another great tutorial. It’s been way too long!
Great to see you back with the videos, requesting you to make a playlist for fastapi
Happy to see you back,,, please make videos on python automation sir
Man glad you're back!
I am so glad to see you back!! Wishing you a healthy and happy life.
Hi Corey, I'm so happy you're back. I was able to learn Python because of you. Can you please do a Django Rest Framework if you have time? Gob bless people like you who wants to impart their knowledge for free.
I'm doing mt final project based in django than I've learned from you. Welcome back legend.! :D
Thanks, God bless you
Thanks!
Hi Corey, I absolutely love your content on python as it's very informative, glad to see you doing tutorials again. Though I do have a question, after going through the beginner python playlist and OOP python playlist, I just see a lot of python explaination videos floating around and don't know what order I should pick them up in, any reccomendations?
Glad your back Corey Sir 👏. Can you plz make any new Python Series on like Machine learning/Deep learning/Data Engineer/Data Analytics etc. In that case anything new that you learned in these days.
Good to see you upload video after so long. Are you running out of video ideas? here are some suggestions if you consider making videos on it. 1. Advanced Type Hinting (like complex ones) 2. Few End-to-end production level Project (share what actual production level code is like, dos, and don'ts) 3. How to negotiate salary(Advance)
The King is backkkkkkkkk what a time
Great to have you back, Corey!
finally corey remember his password.
Glad you're back. You have the potential to have millions of followers and earn thousands of dollars. Don't know why you don't go for it.
Welcome Back , Corey❤
Great that you are back, hope your health is great
You are the No1 instructor. The Legend
So glad to see you back !!
Great video as old times! :-)
YAYYYYY COREY VIDEOOOOOOO!!!!!!!!!!!!
Corey, thanks for another great video. I don't know if you'll ever see this, but in case you do: I think you are using a Python formatter in this video; a tutorial about that would be great. Thanks :)
Hey Corey we all love the way you teach that's why I request you to make a playlist about math for data science
Great video!
Happy to see you buddy...
the man I owe my job to is back!
THE LEGEND IS HERE ONCE AGAIN
Welcome back, Corey!
Nice to see you back
Look who’s back ❤❤❤
Great video! Excited for the next one! Thank you for all you've done!
The return of the king ...
Thanks Corey! Learned a lot from you videos!
You are not the only one to get this error.
I spent entire night trying to figure out what was going wrong, until I even printed out the environment variables...😮💨
Welcome Back in Action Corey MS
Python legend is back
Wooow..... 🎉🎉🎉🎉🎉 Happy to see you are back....😂
Welcome back, missed your voice!
Waiting for your pytorch or tensorflow tutorial.
Also docker.
Good to have you back :)
Wake up babe! Corey just dropped a video after 12 years
The legend is back
Man I miss you, where have you been?
So happy to see new video 😃
Wake up babe, Corey Schafer just dropped another banger tutorial
Can't believe it😂 Now you are using vscode you used to say " let me open up my sublime text"😂😂
Yeah he’s evolved backwards by using that proprietary Microsoft garbage
Sublime may still be making an appearance if I can get a few things figured out. A lot of the packages I used on there haven’t been maintained and have broken with updates to either Sublime or Python. I still wish I could get VS Code to my minimalist liking for recordings. I think I can, but still a little ways to go
@@coreymstry out zed editor. It’s faster than Sublime and simpler than VSCode.
@@coreymshave you tried out zen mode on VSCode?
@@chiroyce Yep, that’s what I’m using here. It helps a lot
master corey is back!
Ohh Man..!!! Thanks God, you are alive.❤
I just watched a tutorial which I hadn’t been doing for years. But I couldn’t say no to Corey’s vdos
GOAT IS COMING BACK
The GOAT is back!!
Informative and to the point. Thanks
The man the myth the legend! Welcome back ❤
welcome back man
Damn Mr. Schafer, your voice has changed, i can feel it :')
Following your videos for years now. You basically thought me OOP Python.
I have one question. Can we use a separate python file with environment variables and import in to the script, that way we can define the variables in whatever the data type we like (dictionaries, lists etc). Is there a disadvantage with using the that approche rather than going for dotenv?
ur a wizard
Can you make video on flet? Is a new library used for building mobile apps with Python without prior experience in front end development
Are you planing uploading something related to LLMS or any related topic?
I hope you are better. Take care and I'll enjoy this video.
Happy to hear from you Corey!
Corey, if you give some advice for beginners in programming, it would be great.