i think load_dotenv() would be enough (it always works on linux, where you would normally deploy a web app)
you will have to import it manually and use. for testing of that file by running it directly, you can put it under if name == "main"
you can add it to the docs of the program and keep a .env.example file filled with dummy values or no values at all (with just the structure)
its secure to keep it away from application's code and config files. doing this, you can ensure that the data is only accessible to the application and not to other users or processes on the same machine
haven't tried it
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Using .env Files for Environment Variables in Python Applications
Replies for: Hi Jake, I am a noob, trying to learn python along with good practices. Now the queries: The official python-dotenv documentation talks about usin...
For further actions, you may consider blocking this person and/or reporting abuse