filmov
tv
Python 3 PathLib 1-Line File Read of API Key

Показать описание
In addition to fixing a mistake from my last video, I show how to uuse the Path object from the new Python 3 pathlib package to do a 1-liner import of an api key from out of a text file. I do this so that I can "finish" the program without showing you the API key or making it part of the github repo, even though it is private. Better to keep such things out of repos. I also use sleep from the Standard Library time package to slow down how fast I'm hitting the API.