Python Tutorial: Securely Manage Passwords and API Keys with DotEnv

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 175

  • @RandomShowerThoughts
    @RandomShowerThoughts 8 місяців тому +111

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

    • @wingielee
      @wingielee 8 місяців тому +2

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

  • @coldhardwick
    @coldhardwick 8 місяців тому +31

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

    • @ExploitGodz
      @ExploitGodz 7 місяців тому

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

    • @ss4yaasir524
      @ss4yaasir524 6 місяців тому

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

  • @andonii46
    @andonii46 8 місяців тому +7

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

  • @chiroyce
    @chiroyce 8 місяців тому +6

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

  • @phoenixawasthi5652
    @phoenixawasthi5652 8 місяців тому +116

    God is back

    • @salahss3060
      @salahss3060 8 місяців тому +2

      Lol wtf 😂😂
      Gos is god

    • @johnnybegood948
      @johnnybegood948 8 місяців тому +1

      😂😂

    • @SeanCallahan52
      @SeanCallahan52 8 місяців тому +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- 8 місяців тому +1

      Wrong address

  • @mrmuranga
    @mrmuranga 8 місяців тому +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

  • @golddropper2747
    @golddropper2747 8 місяців тому +1

    Wake up babe, Corey Schafer just dropped another banger tutorial

  • @chiedozieehirim5659
    @chiedozieehirim5659 3 місяці тому

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

  • @Mohsen-T-Far
    @Mohsen-T-Far 8 місяців тому +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

  • @blakenall5004
    @blakenall5004 8 місяців тому +34

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

    • @coreyms
      @coreyms  8 місяців тому +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 7 місяців тому

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

  • @vishwasluhana
    @vishwasluhana 8 місяців тому +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.

  • @thetruereality2
    @thetruereality2 8 місяців тому +3

    Thanks, God bless you

  • @Jelvix
    @Jelvix 7 місяців тому +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!

  • @davidpaez_co
    @davidpaez_co 8 місяців тому +3

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

  • @Data.Couple
    @Data.Couple 8 місяців тому +1

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

  • @b33p_b00p
    @b33p_b00p 8 місяців тому +7

    Glad to see you’re back Corey

  • @akhilkishore7361
    @akhilkishore7361 8 місяців тому

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

  • @sarahdavids1
    @sarahdavids1 8 місяців тому +2

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

  • @anupsingh4782
    @anupsingh4782 8 місяців тому

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

  • @pietraderdetective8953
    @pietraderdetective8953 8 місяців тому +1

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

  • @21Guitars_
    @21Guitars_ 8 місяців тому +1

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

  • @fayazsyed4010
    @fayazsyed4010 7 місяців тому +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!"

  • @NickMirsepassi
    @NickMirsepassi 7 місяців тому

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

  • @samoylov1973
    @samoylov1973 8 місяців тому +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!

  • @idreesademola9458
    @idreesademola9458 8 місяців тому

    You are the No1 instructor. The Legend

  • @PadaiLikhai-hu6op
    @PadaiLikhai-hu6op 7 місяців тому

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

  • @rainymatch
    @rainymatch 8 місяців тому +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!

  • @amidipu
    @amidipu 8 місяців тому

    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

  • @greisboy425
    @greisboy425 8 місяців тому +1

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

  • @anubhavlavania1
    @anubhavlavania1 8 місяців тому

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

  • @wlady3190
    @wlady3190 8 місяців тому

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

  • @Akr09145
    @Akr09145 8 місяців тому +2

    THE GOAT IS BACK. HE HAS COOKED.

  • @aadilrashidnajar9468
    @aadilrashidnajar9468 7 місяців тому

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

  • @bartuslongus
    @bartuslongus 3 дні тому

    This is my Python course guy. There are many like it, but this one is mine.

  • @rajaryan7167
    @rajaryan7167 8 місяців тому +3

    finally corey remember his password.

  • @123arskas
    @123arskas 8 місяців тому

    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.

  • @kevindunlap2832
    @kevindunlap2832 8 місяців тому

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

  • @LastRoze
    @LastRoze 8 місяців тому

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

  • @RajanKooram
    @RajanKooram 8 місяців тому

    Great that you are back, hope your health is great

  • @Earth-Worm-Tim
    @Earth-Worm-Tim 8 місяців тому

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

  • @blue.5768
    @blue.5768 8 місяців тому +2

    welcome back Corey! missed your uploads :D

  • @tanuj05
    @tanuj05 8 місяців тому

    Python legend is back

  • @shubhamyadav6101
    @shubhamyadav6101 6 місяців тому

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

  • @TimL_
    @TimL_ 8 місяців тому +2

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

  • @swxin9
    @swxin9 8 місяців тому

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

  • @divineduah3220
    @divineduah3220 8 місяців тому +3

    Happy to see you back!

  • @shykathimu
    @shykathimu 8 місяців тому +1

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

  • @mdtahmid7517
    @mdtahmid7517 8 місяців тому

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

  • @johnattaiyinusa5766
    @johnattaiyinusa5766 8 місяців тому

    Great to have you back, Corey!

  • @janiskarasa3707
    @janiskarasa3707 8 місяців тому +1

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

  • @valeriusandof9782
    @valeriusandof9782 8 місяців тому +1

    the man I owe my job to is back!

  • @tikendraw
    @tikendraw 8 місяців тому

    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)

  • @JoeBurnett
    @JoeBurnett 8 місяців тому

    So glad to see you making videos again!

  • @deequi77
    @deequi77 7 місяців тому

    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.

  • @cmhanft
    @cmhanft 8 місяців тому

    THE LEGEND IS HERE ONCE AGAIN

  • @theoriginalneckbeard
    @theoriginalneckbeard 8 місяців тому

    Welcome back, missed your voice!

  • @eziola
    @eziola 8 місяців тому

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

  • @Cubin4ik
    @Cubin4ik 8 місяців тому +4

    The legend is back!

  • @prachalaugustine9651
    @prachalaugustine9651 8 місяців тому

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

  • @Mostaqmahmud
    @Mostaqmahmud 8 місяців тому

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

  • @spprakash76
    @spprakash76 8 місяців тому

    Welcome Back in Action Corey MS

  • @akagamishanks7991
    @akagamishanks7991 8 місяців тому +1

    The King is backkkkkkkkk what a time

  • @JorgeEscobarMX
    @JorgeEscobarMX 8 місяців тому

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

  • @aamersayed6217
    @aamersayed6217 8 місяців тому

    Look who’s back ❤❤❤

  • @anilk5929
    @anilk5929 8 місяців тому

    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.

  • @ayushnema3233
    @ayushnema3233 8 місяців тому

    The return of the king ...

  • @J0n3s90
    @J0n3s90 8 місяців тому

    Good to have you back :)

  • @prabhakardevineni6956
    @prabhakardevineni6956 8 місяців тому +1

    Man glad you're back!

  • @canernm
    @canernm 8 місяців тому

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

  • @princemensahansah8769
    @princemensahansah8769 8 місяців тому +1

    Welcome Back , Corey❤

  • @peterogbodo2679
    @peterogbodo2679 8 місяців тому

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

  • @rugri
    @rugri 7 місяців тому +1

    Great video as old times! :-)

  • @sa6kad
    @sa6kad 7 місяців тому

    Thanks Corey! Learned a lot from you videos!

  • @balaolu5302
    @balaolu5302 8 місяців тому

    So glad to see you back !!

  • @shrijeetbiswas1640
    @shrijeetbiswas1640 8 місяців тому

    The man the myth the legend! Welcome back ❤

  • @manishsinghparihar9006
    @manishsinghparihar9006 7 місяців тому

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

  • @amirchegg
    @amirchegg 8 місяців тому +1

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

  • @BonyNakhale
    @BonyNakhale 8 місяців тому

    So happy to see new video 😃

  • @Dara-lj8rk
    @Dara-lj8rk 8 місяців тому

    Nice to see you back

  • @DM-py7pj
    @DM-py7pj 8 місяців тому +1

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

  • @mlindatech
    @mlindatech 8 місяців тому +1

    Happy to see you buddy...

  • @TheLordPranamya
    @TheLordPranamya 7 місяців тому

    Welcome back, Corey!

  • @AceofSpades5757
    @AceofSpades5757 8 місяців тому

    The legend is back

  • @ugestacoolie5998
    @ugestacoolie5998 7 місяців тому

    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?

  • @alexandrealmeida4360
    @alexandrealmeida4360 7 місяців тому

    Informative and to the point. Thanks

  • @junqueirapedro
    @junqueirapedro 8 місяців тому +2

    He is BACK !!!

  • @Aborrajardo
    @Aborrajardo 8 місяців тому

    Thanks a lot, the timming could be better for a project I'm in at the moment!

  • @mahdikhoshmaram3179
    @mahdikhoshmaram3179 8 місяців тому +1

    Waiting for your pytorch or tensorflow tutorial.
    Also docker.

  • @dano2169
    @dano2169 8 місяців тому +2

    Great video!

  • @Klannahar
    @Klannahar 8 місяців тому +1

    Does this physically add the environment variable into the system environment variable list? What i mean by that, after i added it once, i can delete the .env file since it is now stored by the system.

    • @coreyms
      @coreyms  8 місяців тому +4

      Great question! When you use python-dotenv, it loads environment variables into the environment of the Python process where it’s called. This means the variables are only accessible within that specific process and do not affect or appear in the system environment or any other processes.
      For example, if you set an API key using python-dotenv in your Python script, that API key will be available throughout the execution of your script, but once the script finishes, the API key disappears from the environment; it won’t be accessible from other scripts or applications.
      Additionally, these variables are not set system-wide. This is an important security feature as it prevents sensitive data from being accessible beyond the intended scope. This process-specific loading ensures that other applications will not see the environment variables set by python-dotenv. Each process would need to load its .env file independently.

    • @Klannahar
      @Klannahar 8 місяців тому +1

      @@coreyms Thank you for the answer, now i can understand how it work.

    • @yuhabkat
      @yuhabkat 8 місяців тому +1

      ​@@coreyms what about using a /etc/config.json file if you are running an apache web server, witch is a better way? i learned that from your django series to hide sensitive information

  • @JorgeEscobarMX
    @JorgeEscobarMX 8 місяців тому

    10:42 how to override existing environment variables. (This is new to me)

  • @webweezzard
    @webweezzard 8 місяців тому +1

    Man I miss you, where have you been?

  • @ofeksh
    @ofeksh 8 місяців тому +1

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

  • @Excellade
    @Excellade 8 місяців тому

    GOAT IS COMING BACK

  • @programindz
    @programindz 8 місяців тому

    Let's now hope 🤞 that the streak continues ❤

  • @codeme8098
    @codeme8098 8 місяців тому

    master corey is back!

  • @tigabumunaye9778
    @tigabumunaye9778 8 місяців тому

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

  • @sarasij1477
    @sarasij1477 8 місяців тому

    The GOAT is back!!

  • @mlindatech
    @mlindatech 8 місяців тому +4

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

    • @illegalsmirf
      @illegalsmirf 8 місяців тому

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

    • @coreyms
      @coreyms  8 місяців тому +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 8 місяців тому

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

    • @chiroyce
      @chiroyce 8 місяців тому

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

    • @coreyms
      @coreyms  8 місяців тому

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

  • @akashgeorge5433
    @akashgeorge5433 24 дні тому

    can somebody tell about the permissions we set to that file
    imagine doing in this in linux what perms shall i set for the .env file
    nice tutorial thank you