Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gspread - does .cell(1,1) perform HTTP request?

Tags:

gspread

Once I have performed sheet = client.open_by_key('GoogleSheetKey').get_worksheet(0) does sheet.cell(1,1) perform another HTTP request to Google API? or is it working off a local object at that point? Thanks!

like image 412
William B Avatar asked Sep 25 '26 10:09

William B


1 Answers

Yes, sheet.cell(1, 1) performs another HTTP request. This is by design: gspread is a "thin" API wrapper and leaves data caching to the end user.

However, if you modifying multiple cell values, consider batching the updates with Worksheet.update_cells method.

like image 81
Burnash Avatar answered Oct 01 '26 06:10

Burnash