Sometimes you want to make your code public, but don't want to share an API key, email address, or password with the world. Using a combination of python-dotenv and a .gitignore file, you'll be good to go!
Note: If you're using Jupyter Notebooks, make sure you're not printing your API keys all over the place!! (and also: your .env file will need to be in the same directory as your .ipynb)
repo: github.com/jsoma/dotenv-example
python-dotenv: github.com/theskumar/python-d...
gitignore: gitignore.io/
26 июн 2021