`python-dotenv` performs a similar function but stores the values in a `.env` file. It can load the secrets as environment variables or a config dictionary.
https://github.com/theskumar/python-dotenv
A more secure alternative is `git-secrets` but has the overhead of managing `gpg` keys:
https://git-secret.io/
--
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.