I have a little program running on a bunch of raspberry Pi's that I want to upload values to a google sheet. These things will run headless and without UI. The data is not sensitive. I chose google sheets because it should be easy for me to play with the data and save time. However, I'm having trouble with auth.
If you follow this quickstart it includes auth examples: https://developers.google.com/sheets/api/quickstart/python it takes you to an auth dialog.
However, all of the options seem to require a 'head' or UI interaction. Even Web Server assumes you can show an oauth flow to the user in the browser. I cannot do this, it's a script running on a pi with no monitor.
Is there a way to setup a true, long-term oauth flow for a headless server to authenticate and write to one of my sheets?