While working on a project, I came across something simple but really important .𝐞𝐧𝐯 𝐟𝐢𝐥𝐞𝐬. At first, I was hardcoding things like 𝐀𝐏𝐈 𝐤𝐞𝐲𝐬 and 𝐔𝐑𝐋𝐬 directly into my code. It worked, but it didn’t feel right. That’s when I learned how .𝐞𝐧𝐯 files help keep sensitive data separate from the actual codebase. I put together a quick 4-slide breakdown covering: → What a .𝐞𝐧𝐯 file is → Why it matters → How to use it in Python #Programming #Python #WebDev #SoftwareEngineering #LearnInPublic #DevTips #100DaysOfCode #COMSATS #CUI
Nice Shaheer. Indeed, creating .env files are very important. One more thing: Creating .env.example file is also a good practice, so other who are collaborating in the project knows what secrets do we need to spin up the application. For Example: .env file DEST_SNOWFLAKE_ACCESS=abc123 .env.example file (Not to add in .gitignore) DEST_SNOWFLAKE_ACCESS=
These .env will become the core part working of huge python frame work as before runing any python coding it will required activation of such env file but carry on after your BS you would came into know such things were a click away from AI