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

Комментарии • 171

  • @RandomShowerThoughts
    @RandomShowerThoughts 4 месяца назад +105

    The legend is back 🙌. I learned everything I know about Python from you ~6 years ago.

    • @wingielee
      @wingielee 4 месяца назад +1

      i concur outrightly... This legend kept dishing out knowledge in python like the Nigerian jollof... Welcome back LEGEND...

  • @coldhardwick
    @coldhardwick 4 месяца назад +27

    Has it been like 12 years? You know you basically taught me a whole lot of python of the years....

    • @ExploitGodz
      @ExploitGodz 4 месяца назад

      im new to python how long it took u to be fluent at it

    • @ss4yaasir524
      @ss4yaasir524 2 месяца назад

      @@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 😊.

  • @phoenixawasthi5652
    @phoenixawasthi5652 4 месяца назад +111

    God is back

    • @salahss3060
      @salahss3060 4 месяца назад +2

      Lol wtf 😂😂
      Gos is god

    • @johnnybegood948
      @johnnybegood948 4 месяца назад +1

      😂😂

    • @SeanCallahan52
      @SeanCallahan52 4 месяца назад +2

      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.

    • @xlys-
      @xlys- 4 месяца назад +1

      Wrong address

  • @blakenall5004
    @blakenall5004 4 месяца назад +32

    Never clicked a video faster, love the tutorials Corey! I'm assuming dotenv is not recommended for production?

    • @coreyms
      @coreyms  4 месяца назад +32

      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.

    • @GitaAska-is6yz
      @GitaAska-is6yz 4 месяца назад

      ​@@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.

  • @andonii46
    @andonii46 4 месяца назад +7

    I learnt 90% of python stuff thanks to your videos, it is awesome to see you back!

  • @chiroyce
    @chiroyce 4 месяца назад +6

    Been using dotenv for a while now snd i still managed to learn something new, Corey you're a legend!!

  • @mrmuranga
    @mrmuranga 4 месяца назад +4

    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

  • @Mohsen-T-Far
    @Mohsen-T-Far 4 месяца назад +1

    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

  • @b33p_b00p
    @b33p_b00p 4 месяца назад +7

    Glad to see you’re back Corey

  • @vishwasluhana
    @vishwasluhana 4 месяца назад +1

    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.

  • @davidpaez_co
    @davidpaez_co 4 месяца назад +3

    So great to see you back, Corey. You are an amazing teacher

  • @sarahdavids1
    @sarahdavids1 4 месяца назад +2

    Just finished your django series Corey! And waking upto your notification made my day.

  • @samoylov1973
    @samoylov1973 4 месяца назад +1

    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!

  • @anupsingh4782
    @anupsingh4782 4 месяца назад

    Good to see you back! Would love to see videos on the latest Python advanced features in future.

  • @Data.Couple
    @Data.Couple 4 месяца назад +1

    Welcome back.. You are one reason to get a job in IT world... Please make more Video...

  • @chiedozieehirim5659
    @chiedozieehirim5659 12 дней назад

    Everything I know about flask and django, I learnt from the legend himself Corey Schafer.
    Thanks a lot for all you do

  • @Jelvix
    @Jelvix 4 месяца назад +1

    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!

  • @fayazsyed4010
    @fayazsyed4010 4 месяца назад +1

    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!"

  • @divineduah3220
    @divineduah3220 4 месяца назад +3

    Happy to see you back!

  • @Cubin4ik
    @Cubin4ik 4 месяца назад +4

    The legend is back!

  • @amidipu
    @amidipu 4 месяца назад

    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

  • @rainymatch
    @rainymatch 4 месяца назад +1

    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!

  • @junqueirapedro
    @junqueirapedro 4 месяца назад +2

    He is BACK !!!

  • @pietraderdetective8953
    @pietraderdetective8953 4 месяца назад +1

    The man, the Legend!
    Thank you for all your contribution to the Python community, Sir!
    ❤❤❤

  • @LastRoze
    @LastRoze 4 месяца назад

    It's been a long time since your last upload, glad you're back Corey!

  • @blue.5768
    @blue.5768 4 месяца назад +2

    welcome back Corey! missed your uploads :D

  • @greisboy425
    @greisboy425 4 месяца назад +1

    Finally, you have another new video sir. Your videos are the best.

  • @DM-py7pj
    @DM-py7pj 4 месяца назад +1

    So pleased that you are back. Does order matter for variable expansion in .env file e.g., USERNAME to be defined above EMAIL?

  • @TimL_
    @TimL_ 4 месяца назад +2

    I use the standard module configparser for this purpose; it does practically the same without having to install additional dependencies.

  • @akhilkishore7361
    @akhilkishore7361 4 месяца назад

    u r the reason why i have started programming , u r my god , glad to see you back

  • @JoeBurnett
    @JoeBurnett 4 месяца назад

    So glad to see you making videos again!

  • @Akr09145
    @Akr09145 4 месяца назад +2

    THE GOAT IS BACK. HE HAS COOKED.

  • @aadilrashidnajar9468
    @aadilrashidnajar9468 4 месяца назад

    You are back I was looking for you for a long time and I want to thank you for the awesome work

  • @janiskarasa3707
    @janiskarasa3707 4 месяца назад +1

    Great content as always. Thank you Corey!
    Let's keep the momentum 🔥

  • @PadaiLikhai-hu6op
    @PadaiLikhai-hu6op 4 месяца назад

    Man it felt so good hearing your voice again. Hope you stay in the best of health and keep blessing us with such content.:)

  • @NickMirsepassi
    @NickMirsepassi 4 месяца назад

    Welcome Back Corey. Everything i know in python is from you

  • @21Guitars_
    @21Guitars_ 4 месяца назад +1

    I knew all this but watched nonetheless because Corey taught me codeing years ago and I was nostalgic haha

  • @Earth-Worm-Tim
    @Earth-Worm-Tim 4 месяца назад

    That’s what I’m talking about. It makes my day to see you back bro 🤘🏼

  • @kevindunlap2832
    @kevindunlap2832 4 месяца назад

    Corey, thanks for another great tutorial. It’s been way too long!

  • @shubhamyadav6101
    @shubhamyadav6101 3 месяца назад

    Great to see you back with the videos, requesting you to make a playlist for fastapi

  • @shykathimu
    @shykathimu 4 месяца назад +1

    Happy to see you back,,, please make videos on python automation sir

  • @prabhakardevineni6956
    @prabhakardevineni6956 4 месяца назад +1

    Man glad you're back!

  • @anubhavlavania1
    @anubhavlavania1 4 месяца назад

    I am so glad to see you back!! Wishing you a healthy and happy life.

  • @deequi77
    @deequi77 4 месяца назад

    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.

  • @wlady3190
    @wlady3190 4 месяца назад

    I'm doing mt final project based in django than I've learned from you. Welcome back legend.! :D

  • @thetruereality2
    @thetruereality2 4 месяца назад +3

    Thanks, God bless you

  • @ugestacoolie5998
    @ugestacoolie5998 4 месяца назад

    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?

  • @anilk5929
    @anilk5929 4 месяца назад

    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.

  • @tikendraw
    @tikendraw 4 месяца назад

    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)

  • @akagamishanks7991
    @akagamishanks7991 4 месяца назад +1

    The King is backkkkkkkkk what a time

  • @johnattaiyinusa5766
    @johnattaiyinusa5766 4 месяца назад

    Great to have you back, Corey!

  • @rajaryan7167
    @rajaryan7167 4 месяца назад +3

    finally corey remember his password.

  • @123arskas
    @123arskas 4 месяца назад

    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.

  • @princemensahansah8769
    @princemensahansah8769 4 месяца назад +1

    Welcome Back , Corey❤

  • @RajanKooram
    @RajanKooram 4 месяца назад

    Great that you are back, hope your health is great

  • @idreesademola9458
    @idreesademola9458 4 месяца назад

    You are the No1 instructor. The Legend

  • @balaolu5302
    @balaolu5302 4 месяца назад

    So glad to see you back !!

  • @rugri
    @rugri 4 месяца назад +1

    Great video as old times! :-)

  • @ofeksh
    @ofeksh 4 месяца назад +1

    YAYYYYY COREY VIDEOOOOOOO!!!!!!!!!!!!

  • @canernm
    @canernm 4 месяца назад

    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 :)

  • @mdtahmid7517
    @mdtahmid7517 4 месяца назад

    Hey Corey we all love the way you teach that's why I request you to make a playlist about math for data science

  • @dano2169
    @dano2169 4 месяца назад +2

    Great video!

  • @mlindatech
    @mlindatech 4 месяца назад +1

    Happy to see you buddy...

  • @valeriusandof9782
    @valeriusandof9782 4 месяца назад +1

    the man I owe my job to is back!

  • @cmhanft
    @cmhanft 4 месяца назад

    THE LEGEND IS HERE ONCE AGAIN

  • @TheLordPranamya
    @TheLordPranamya 3 месяца назад

    Welcome back, Corey!

  • @Dara-lj8rk
    @Dara-lj8rk 4 месяца назад

    Nice to see you back

  • @aamersayed6217
    @aamersayed6217 4 месяца назад

    Look who’s back ❤❤❤

  • @eziola
    @eziola 4 месяца назад

    Great video! Excited for the next one! Thank you for all you've done!

  • @ayushnema3233
    @ayushnema3233 4 месяца назад

    The return of the king ...

  • @sa6kad
    @sa6kad 4 месяца назад

    Thanks Corey! Learned a lot from you videos!

  • @manishsinghparihar9006
    @manishsinghparihar9006 4 месяца назад

    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...😮‍💨

  • @spprakash76
    @spprakash76 4 месяца назад

    Welcome Back in Action Corey MS

  • @tanuj05
    @tanuj05 4 месяца назад

    Python legend is back

  • @peterogbodo2679
    @peterogbodo2679 4 месяца назад

    Wooow..... 🎉🎉🎉🎉🎉 Happy to see you are back....😂

  • @theoriginalneckbeard
    @theoriginalneckbeard 4 месяца назад

    Welcome back, missed your voice!

  • @mahdikhoshmaram3179
    @mahdikhoshmaram3179 4 месяца назад +1

    Waiting for your pytorch or tensorflow tutorial.
    Also docker.

  • @J0n3s90
    @J0n3s90 4 месяца назад

    Good to have you back :)

  • @prachalaugustine9651
    @prachalaugustine9651 4 месяца назад

    Wake up babe! Corey just dropped a video after 12 years

  • @AceofSpades5757
    @AceofSpades5757 4 месяца назад

    The legend is back

  • @solomonwilliams6524
    @solomonwilliams6524 4 месяца назад +1

    Man I miss you, where have you been?

  • @BonyNakhale
    @BonyNakhale 4 месяца назад

    So happy to see new video 😃

  • @golddropper2747
    @golddropper2747 4 месяца назад

    Wake up babe, Corey Schafer just dropped another banger tutorial

  • @mlindatech
    @mlindatech 4 месяца назад +4

    Can't believe it😂 Now you are using vscode you used to say " let me open up my sublime text"😂😂

    • @illegalsmirf
      @illegalsmirf 4 месяца назад

      Yeah he’s evolved backwards by using that proprietary Microsoft garbage

    • @coreyms
      @coreyms  4 месяца назад +1

      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

    • @ShmuelSpade
      @ShmuelSpade 4 месяца назад

      @@coreymstry out zed editor. It’s faster than Sublime and simpler than VSCode.

    • @chiroyce
      @chiroyce 4 месяца назад

      ​@@coreymshave you tried out zen mode on VSCode?

    • @coreyms
      @coreyms  4 месяца назад

      @@chiroyce Yep, that’s what I’m using here. It helps a lot

  • @codeme8098
    @codeme8098 4 месяца назад

    master corey is back!

  • @Mostaqmahmud
    @Mostaqmahmud 4 месяца назад

    Ohh Man..!!! Thanks God, you are alive.❤

  • @swxin9
    @swxin9 4 месяца назад

    I just watched a tutorial which I hadn’t been doing for years. But I couldn’t say no to Corey’s vdos

  • @Excellade
    @Excellade 4 месяца назад

    GOAT IS COMING BACK

  • @sarasij1477
    @sarasij1477 4 месяца назад

    The GOAT is back!!

  • @alexandrealmeida4360
    @alexandrealmeida4360 4 месяца назад

    Informative and to the point. Thanks

  • @shrijeetbiswas1640
    @shrijeetbiswas1640 4 месяца назад

    The man the myth the legend! Welcome back ❤

  • @MoeQ_
    @MoeQ_ 4 месяца назад

    welcome back man

  • @amirchegg
    @amirchegg 4 месяца назад +1

    Damn Mr. Schafer, your voice has changed, i can feel it :')

  • @Madhawa242
    @Madhawa242 4 месяца назад

    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?

  • @Jayheni
    @Jayheni 4 месяца назад +1

    ur a wizard

  • @solomonwilliams6524
    @solomonwilliams6524 4 месяца назад

    Can you make video on flet? Is a new library used for building mobile apps with Python without prior experience in front end development

  • @ravindrapandey4295
    @ravindrapandey4295 4 месяца назад

    Are you planing uploading something related to LLMS or any related topic?

  • @JorgeEscobarMX
    @JorgeEscobarMX 4 месяца назад

    I hope you are better. Take care and I'll enjoy this video.

  • @kenn3899
    @kenn3899 4 месяца назад +1

    Happy to hear from you Corey!

  • @tigabumunaye9778
    @tigabumunaye9778 4 месяца назад

    Corey, if you give some advice for beginners in programming, it would be great.