I am trying to figure out how to use google cloud translate in my own Python3 environment. I have completed the codelabs tutorial that shows me how to do it in the cloud shell, but I want to run it from my own environment. I can install the google-cloud-translate library of course but I have no idea how to set up authentication, which in the tutorial uses a bunch of cloud shell commands that (AFAIK) I can't run from my Linux shell.
I did get a copy of the key.json file created in that process, in hopes there is a way to use that for my standalone system. But after quite a bit of searching I've not found any instructions for setting up authentication using that file or otherwise. There is a guide for setting up a Python dev environment, but it says nothing about authentication.
Can anyone point me to a tutorial or worked example?