How to save confidential data in environment variables with dotenv best practice is to never have passwords and alike in clear text in Python scripts - here is the solution I use