gspread-pandas
gspread-pandas copied to clipboard
Handling of credentials configuration doesn't match the documentation
The documentation for conf.py/get_config says:
"The creds_dir value will be set to conf_dir/creds and the directory will be created if it doesn't exist; if you'd like to override that you can do so by changing the 'creds_dir' value in the dict returned by this function. "
However, running test code:
import gspread_pandas conf = gspread_pandas.conf.get_config(conf_dir=".", file_name="credentials.json") sh = gspread_pandas.spread.Spread(spread="testing", config=conf)
And using the OAuth flow, puts the user credentials in a creds directory under the default gspread_pandas config location, not under the location specified by conf_dir.
It looks like the conf dict does not contain a 'creds_dir' entry, and manually adding one also doesn't seem to change the location of where the credentials are placed either.
gspread 5.12.4 gspread-pandas 3.3.0 google-auth 2.29.0 google-auth-oauthlib 1.2.0