Load Environment Variables From .env Files in Python

preview_player
Показать описание
Today we go a little bit deeper into the Python dotenv module, which allows us to load environment variables from .env files.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

I'm on your third video, and it's absolutely mind-boggling how you happen to be teaching the exact Python concepts I want to learn quickly for my current project. You're just the helper I was looking for.

kenkioqqo
Автор

Awesome tutorial. Thanks for making this quick and painless

beastlorion
Автор

Your lecture was very easy to follow and effective! It was really helpful for me.

Dev_Gisoun
Автор

Learn't so much from this channel ❤

maxwhittaker
Автор

Ironically, I just began using python-decouple for .env files which happens to be one of a few late improvements in my scripting. Love this channel, definitely a gold mine of dev related knowledge.

kylecurry
Автор

Thank you soo much, it saved me hours of debugging!!! 💟

debashreewaddadar
Автор

Hello, I am confused by your use of $ and non-string values within your dotenv file. What is the purpose of this? Sorry if this is a dumb question & thanks for your video

appaloosa-marketing
Автор

Thanks for this tutorials, actually have been struggling to get a way around this .env thing for a while with a kivy app.

Please I mean to ask, is this a very secure way to do it or there are other ways plus when I try to use it with my kivy app, bulldozer keeps giving me errors whenever it tries to download the dotenv module. Thanks in anticipation boss

olorundaremicheal
Автор

Hey, thanks a bunch! So, the other day I accidentally made my OpenAI API key public for a short while, and had to delete the whole repository. But thanks to your help, I'm following best practices now. By the way, I can't help but notice your white board - looks like there are some differential equations and a neural network model, maybe some content related to gradient descent too? It's really intriguing!

wg
Автор

Is it recommended to store list and integer in .env? Because I need to convert `os.getenv()` with `ast.literal_eval` before passing as a variable. I store related RSS URL as a list in my script.

manifestasisanubari
Автор

What are the pros and cons of using .ini, .env, .toml and .yaml for storing environment variables?

birdie
Автор

what happens when you have more than one .env file ?

itstobystic
Автор

What is the benefit of doing this over a regular toml or yaml or ini file?

murphygreen
Автор

I did the same as like in video but getting this erro "Unresolved reference 'dotenv'". Could someone help me

explorewithskp
Автор

Oh, that look “If you don’t understand through my video what I explained to you, I’ll punch you”😅😅😅
Thank you so much for your content, sir, you are the best!

Roman-knkt
Автор

Thanks for this tutorial
Which plugin do you use in Pycharm to detect .env and .secret files

didierdavid
Автор

Awesome tutorial 👍Need more Flask and Django.

krzysiekkrzysiek
Автор

What is this black colour tool
Python which version?

dkjb
Автор

How would I handle Environmental Variables with Inno Setup?

WaterWheel
Автор

Does anybody know how to make this work when you make your Python file into a .exe Python file?

michaeljosiah