IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Consider using gspread library to communicate with Google Sheets/Drive #121

Open istride opened 4 months ago

istride commented 4 months ago

The gspread library communicates with the Google Sheets and Google Drive APIs and could be used to simplify the code in GoogleSheetReader.

As an example of what gspread makes possible:

import gspread
from gspread.utils import ExportFormat

gc = gspread.service_account()
gc.open("Where is the money Lebowski?").export("worksheet_name", ExportFormat.CSV)