This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gspread | |
from gspread_dataframe import get_as_dataframe | |
from oauth2client.service_account import ServiceAccountCredentials | |
class GoogleSheets: | |
def __init__(self, credentials): | |
scope = ["https://www.googleapis.com/auth/drive"] | |
self.gc = gspread.authorize( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from functools import lru_cache | |
class Singleton: | |
@lru_cache | |
def __new__(cls, *args, **kwargs): | |
return super().__new__(cls) |