gspread icon indicating copy to clipboard operation
gspread copied to clipboard

Track API call usage in the spreadsheet object

Open brianjmurrell opened this issue 6 months ago • 3 comments

Is your feature request related to a problem? Please describe. I hit quota limits and am not sure why.

Describe the solution you'd like I would like each gspread operation to account for the number of API hits it makes as a property of the spreadsheet object (i.e. what you get from gspread.oauth().open()). With that I can better account for which operations are using up quota and try to optimize my code to be more API-efficient.

Describe alternatives you've considered This one is probably a separate issue, but it would be nice if gspread could implement an exponential backoff-and-retry when hitting quota limits so that applications, while they might take longer to run, won't hit quota limit exceptions.

Additional context None that I can think of.

brianjmurrell avatar Apr 25 '25 18:04 brianjmurrell