Getting Rid of Hardcoded Python Variables With the Dotenv Module

Improve code maintainability and security against Google dorking attacks

Nicholas Obert
Better Programming
Published in
3 min readAug 24, 2021

--

Photo by Firmbee.com on Unsplash

Every programmer has written some application hardcoding global settings and variables. While there’s nothing wrong with this using approach in a simple script, it may be worth defining the configuration for a larger application in a…

--

--