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: https://github.com/jsoma/dotenv-example
python-dotenv: https://github.com/theskumar/python-d...
gitignore: https://gitignore.io/
Auf dieser Seite können Sie das Online-Video Hide API keys in Python scripts using python-dotenv, .env, and .gitignore mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jonathan Soma 27 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 50,458 Mal angesehen und es wurde von 1.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!