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

oauth2client is deprecated #54

Open
mattmoehr opened this issue Sep 1, 2020 · 2 comments
Open

oauth2client is deprecated #54

mattmoehr opened this issue Sep 1, 2020 · 2 comments

Comments

@mattmoehr
Copy link

:type credentials: class 'oauth2client.client.OAuth2Credentials'

Google has deprecated oauth2client.

According to the gspread docs we should use google-auth instead. Shouldn't the df2gspread function allow for passing in the gsrpead.client.Client object instead of messing with credentials? That way users can manage their credentials and authorization with gspread and this package doesn't have to worry about the deprecation.

@mattmoehr
Copy link
Author

Probably better just to use https://github.com/robin900/gspread-dataframe

@mroy-seedbox
Copy link

Or monkey patch gspread:

    def upload_pandas_df(self, df):
      values = [df.columns.values.tolist()]
      values.extend(df.values.tolist())
      sheet.values_update(
        self.title,
        params = { 'valueInputOption': 'USER_ENTERED' },
        body = { 'values': values }
      )

    gspread.Worksheet.upload_pandas_df = upload_pandas_df

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

2 participants