gspread_asyncio
gspread_asyncio copied to clipboard
Asyncio wrapper for the gspread Google Spreadsheet API library
Hello! Keep on getting this error for some reason: ` asyncio.run(test()) File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File...
Added annotations to agcm parameters in example() to display quick documentation in the IDE.
- in get_all_values all parameters were missing - in get_values added three missing parameters
Experiment with this to see if it can smoothly handle all internal API calls, allowing us to cleanly handle APIs that make more than one network call.
Currently I'm using gspread-dataframe to update data to entire sheet. Can I use this library with gspread-dataframe?
Let us bounce up against Google's rate limiting instead of trying to figure out how long to sleep ourselves.
These need to be implemented upstream. Then, the gspread_asyncio code can have optional batching modes for row appends and cell updates that use these methods.
Right now, I have an authorization loop that runs every 60 seconds that automatically re-authorizes the credentials for the sheet I am using. ```py async def refresh_google_creds(agcm): await bot.wait_until_ready() #waits...
This is a corner of asyncio API design that I am not super familiar with, but it should be investigated before a 1.0 release to see if it's worth doing...