Комментарии:
Just like Env reader in dart
ОтветитьHi. I assigned luigi123 as my USERNAME in .env but when I printed the username it shows my real name. What gives?🤔
Ответитьhelpful. thank you.
Ответить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
ОтветитьGreat video.
ОтветитьI use python-decouple.
ОтветитьExcellent❤
ОтветитьWhat text editor/IDE you are using
Ответитьin@it host-ip
Ответить❤
Ответитьsei italiano?
ОтветитьProviding types for every variable is maybe more professional aproach, but it's so iritating, I never do it
ОтветитьWhat about bad english ?
ОтветитьWhich Is your theme?
ОтветитьWhats your code editor you use
ОтветитьI thought, your channel was called Identity...
Ответить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?
ОтветитьIf you do not want to install the mentioned packege, you can use this istead of load_dotenv:
with open('.env') as f:
os.environ.update({k: v for k, v in [r.split('=') for r in f.readlines()]})
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.
ОтветитьThanks!
ОтветитьAwesome video! What is the difference between a config file and a .env file?
ОтветитьYou helped me so much with this video thank you keep up the awesome content👏🔥
ОтветитьThanx!
ОтветитьGreat video. But anybody can have access env in local. Any alternative to be more secure and how the use in production.
ОтветитьWhich IDE or text editor you are using? Please reply
ОтветитьAwesome! Going to implement this tomorrow
Ответить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.
ОтветитьWhich IDE is this?
ОтветитьDo you know if this is secure regarding github copilot? I always wonder what gets pulled from it to make suggestions.
Ответить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.
Ответить