Comments (7)
True that! I will update the gspread client. So you can keep the same code and keep it working.
from gspread.
In [4]: gspread_service.set_timeout(300)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 gspread_service.set_timeout(300)
AttributeError: 'Client' object has no attribute 'set_timeout'
In [5]: gspread_service
Out[5]: <gspread.client.Client at 0x7fe652783290>
from gspread.
In [6]: dir(gspread_service)
Out[6]:
['__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getstate__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_list_spreadsheet_files',
'copy',
'create',
'del_spreadsheet',
'export',
'get_file_drive_metadata',
'http_client',
'import_csv',
'insert_permission',
'list_permissions',
'list_spreadsheet_files',
'open',
'open_by_key',
'open_by_url',
'openall',
'remove_permission']
from gspread.
I believe we should use gspread_service.http_client
now
from gspread.
https://docs.gspread.org/en/v6.0.0/api/http_client.html
from gspread.
So how does one go from
import gspread
gspread_service = gspread.service_account(GSHEET_SERVICE_ACCOUNT_PATH)
gspread_service.set_timeout(120)
to using http_client.html ?
and that document says this is not meant for the users to use!
from gspread.
So how does one go from
import gspread gspread_service = gspread.service_account(GSHEET_SERVICE_ACCOUNT_PATH) gspread_service.set_timeout(120)
to using http_client.html ?
and that document says this is not meant for the users to use!
I personally did it like that:
import gspread
gspread_service = gspread.service_account(GSHEET_SERVICE_ACCOUNT_PATH)
gspread_service.http_client.set_timeout(120)
from gspread.
Related Issues (20)
- improve documentation HOT 2
- cell.expand('table') feature requests HOT 7
- add `value_render_option` to examples (automatic conversion of currency) HOT 6
- Update conda forge package HOT 2
- A way to add DataValidation HOT 6
- Missing py.typed marker HOT 1
- AttributeError: 'HTTPClient' object has no attribute 'import_csv' HOT 3
- Unable to read public readonly spreadsheet HOT 4
- Add missing types HOT 2
- Disambiguating and filling in headers similar to Pandas HOT 8
- worksheet.add_protected_range() - impossible to create the `warning_only=True` range HOT 2
- ADC Authentication HOT 2
- HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1000)'))) HOT 2
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- gspread depends on google-auth>2.4.0 but only specifies google-auth>=1.12.0 HOT 7
- Client.copy(..., copy_permissions=True) breaks when permission type is domain HOT 1
- Remove StrEnum dependency HOT 6
- Add support for append columns HOT 5
- Feature request. Batch Merge in worksheet class HOT 2
- lint failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gspread.