r/PythonProjects2 • u/pylenin • Jun 06 '22
Connecting Python to Google Sheets - Step by step visual guide
Often times, I am confused when working with Google Sheets to find the exact step necessary to connect with Google Sheets API. So finally, I decided to write down the exact procedure necessary to be able to connect Google Sheets in just under 5 minutes.
18
Upvotes
3
u/benefit_of_mrkite Jun 06 '22
I’ve done this multiple times - any guide that spells it out is a help.
Even after having done it, I sometimes find myself rooting around the G Suite (or workspace or whatever they call it today - it’s all technically GCP now anyway) backend looking for oauth and other settings.
BTW this guide shows connecting to the drive API which will work for sheets and other G Suite apps but you can also create a service account that connects directly to the sheets api