Hide API keys in Python scripts using python-dotenv, .env, and .gitignore

Publicado em: 27 Junho 2021
no canal de: Jonathan Soma
50,458
1.2k

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/


Nesta página do site você pode assistir ao vídeo on-line Hide API keys in Python scripts using python-dotenv, .env, and .gitignore duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jonathan Soma 27 Junho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 50,458 vezes e gostou 1.2 mil espectadores. Boa visualização!