Komentáře •

  • @fasanojp
    @fasanojp Před 3 měsíci +2

    An alternative is to use the Python keyring package. An advantage is that the sensitive information is not stored in plain text on the local machine.

  • @pietraderdetective8953
    @pietraderdetective8953 Před 6 měsíci +2

    i really love your Python syntax which includes types both for the variables and the function return.
    not a lot of python youtube channels properly uses types like that.
    I'm currently learning C and Rust, and I have learned Cython before so these static typing are very important.

    • @Indently
      @Indently Před 6 měsíci

      Always happy to see an appreciator of type annotations in Python :) I programmed in Python without them for a while, and that freedom showed me why they were so important in the end. So my older tutorials might not have them always, but all my future tutorials will definitely always have them!

  • @dk-ww3kp
    @dk-ww3kp Před rokem +1

    You helped me so much with this video thank you keep up the awesome content👏🔥

  • @SonuSingh-sn8qg
    @SonuSingh-sn8qg Před rokem +1

    Awesome! Going to implement this tomorrow

  • @ozzman530
    @ozzman530 Před rokem +2

    I think this is doing the same thing when I store variables in my Linux environment. per the .profile, or .bashrc. Is that accurate? I use this method to store detail but you have to keep an eye on file permissions. On top of that I have went so far and finding ways to encrypt the info using a seed file, but again finding suitable file permissions and places to store the seed should be concerns.

  • @alexjando4880
    @alexjando4880 Před rokem +7

    Great video, but if you want to do something native to python, you could do it by using either simple json file, or by just iterating each line of the .env file and adding the environment variables yourself.

  • @JoePolasek
    @JoePolasek Před 6 měsíci

    Awesome! Now I finally understand what .env files are for :D

  • @EricHuang-cc2uu
    @EricHuang-cc2uu Před 2 měsíci

    Great video🎉, compare to normal json file or txt file, is there any advantage using .env file?

  • @ali-g
    @ali-g Před rokem +6

    Awesome video! What is the difference between a config file and a .env file?

    • @antonisstellas741
      @antonisstellas741 Před 11 měsíci

      You can actually do the same job with a config file. However, generally in a config file you save non-sensitive information.

  • @doonk6004
    @doonk6004 Před 2 měsíci

    I keep a .env.example file in my repos whenever I need to communicate to users and other devs which environment keys need to be set up.

  • @arnabmondal2680
    @arnabmondal2680 Před 11 měsíci

    Make a a video how to atore environment variables/secret variables in github and retrieve in it the code , because if i hist the github repo on a platform like c panel , i want make sure api keys correctly retrieved

  • @lucazirkelbach3151
    @lucazirkelbach3151 Před rokem +1

    Whats your code editor you use

  • @Sinke_100
    @Sinke_100 Před rokem +2

    Providing types for every variable is maybe more professional aproach, but it's so iritating, I never do it

  • @MyManJohnny
    @MyManJohnny Před rokem +4

    Another option would be to create a json file, and then write a simple wrapper class that you can use to load and access the data.

  • @gravity9999
    @gravity9999 Před rokem

    What text editor/IDE you are using

  • @MannyBernabe
    @MannyBernabe Před 10 měsíci

    helpful. thank you.

  • @lucaluisi8860
    @lucaluisi8860 Před rokem +1

    Which Is your theme?

  • @pfaelzer2234
    @pfaelzer2234 Před rokem +1

    Good video, but in my case very strange. I took over the source code from you and also .env. But if I execute print('USERNAME...) I see my original USERNAME and not the USERNAME written in .env. Do you know why?

    • @TheRealLAC
      @TheRealLAC Před rokem

      In this instance, if you wish to print to console, you need a formatted string, as you are treating the print statement as plain text.
      print(f"My username is {USERNAME}!")
      This assumes you have imported USERNAME from the .env and already instanced and defined it in the script you are currently working in.

    • @pfaelzer2234
      @pfaelzer2234 Před rokem

      @@TheRealLAC under Ubuntu the variable USERNAME is reserved. If I take username it works.

  • @yurix650
    @yurix650 Před rokem +1

    Thanx!

  • @kaiserkonok
    @kaiserkonok Před rokem +1

    Which IDE or text editor you are using? Please reply

  • @AliHamza-en8cn
    @AliHamza-en8cn Před rokem +2

    Great video. But anybody can have access env in local. Any alternative to be more secure and how the use in production.

    • @Indently
      @Indently Před rokem +5

      I don't understand what what you mean. The only person who has access to your env on local is you and whoever else uses your computer.

    • @AliHamza-en8cn
      @AliHamza-en8cn Před rokem +1

      @@Indently I mean, for example, you have a project already in an exe that is passed to the end user and the script has to connect to the database if we save it in env, the people who access that computer will be able to see it and that env is not encrypted, right?

    • @Moonz97
      @Moonz97 Před rokem +4

      ​@@AliHamza-en8cn build a server in between those layers as a relay. So your end user connects to your server, and your server connects to the DB. More secure that way since you can control what goes in your DB and users cant access the DB directly.

    • @AliHamza-en8cn
      @AliHamza-en8cn Před rokem +1

      @@Moonz97 Thanks bro for information. Any suggestions of server?

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 Před rokem

    Excellent❤

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Před rokem

    Great video.

  • @rish9422
    @rish9422 Před 5 měsíci

    tysm!!

  • @DDecorah
    @DDecorah Před rokem +1

  • @appuz9220
    @appuz9220 Před rokem +2

    Which IDE is this?

    • @yurix650
      @yurix650 Před rokem +1

      pycharm's new theme

    • @appuz9220
      @appuz9220 Před rokem +1

      ​@@yurix650is there a name for the new theme i can't find it

  • @ricgondo
    @ricgondo Před rokem +1

    Thanks!

    • @Indently
      @Indently Před rokem +1

      Thank you for your genorosity! :)

    • @ricgondo
      @ricgondo Před rokem

      No no sir!!! This was cool!!!

  • @aafan.kuware
    @aafan.kuware Před rokem

    I use python-decouple.

  • @mortysmith666
    @mortysmith666 Před 9 měsíci

    Just like Env reader in dart

  • @jjt229
    @jjt229 Před rokem +1

    What about bad english ?

  • @DDecorah
    @DDecorah Před rokem +1

    in@it host-ip

  • @Oler-yx7xj
    @Oler-yx7xj Před rokem +2

    I thought, your channel was called Identity...

  • @Assxz
    @Assxz Před rokem

    sei italiano?