A Quick Way to Add Username and Passwords to Your Python Scripts
The other day I was asked: How do I get usernames and passwords into my Python scripts? For example to use with Netmiko, Scrapli or Nornir. The simple answer to this is the library python-dotenv. Whats python-dotenv? python-dotenv is a library that loads your environment variables from a .env file.