Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of credentials configuration doesn't match the documentation #104

Open
johnmreynolds opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@johnmreynolds
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant