Importing of the `os` module can be avoided by loading the contents of the `.env` file into a dictionary using the `dotenv_values` function.
It also eliminates another line if your loading the environment variable into a python one
--
Data Scientist and Chartered Aeronautical Engineer (MEng CEng EUR ING MRAeS) with over 15 years experience in the Aerospace, Defence and Rail Industry.
Love podcasts or audiobooks? Learn on the go with our new app.