From b150febda28fedaf95f00905abdbf89eca8d1183 Mon Sep 17 00:00:00 2001 From: Guillaume Charest <1690085+gcharest@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:49:25 +0000 Subject: [PATCH] remove: delete unused Google Pickle String script and its dependencies --- .../get_google_pickle_string.py | 19 ------------------- scripts/google_pickle_string/requirements.txt | 3 --- 2 files changed, 22 deletions(-) delete mode 100644 scripts/google_pickle_string/get_google_pickle_string.py delete mode 100644 scripts/google_pickle_string/requirements.txt diff --git a/scripts/google_pickle_string/get_google_pickle_string.py b/scripts/google_pickle_string/get_google_pickle_string.py deleted file mode 100644 index 52ccbc54..00000000 --- a/scripts/google_pickle_string/get_google_pickle_string.py +++ /dev/null @@ -1,19 +0,0 @@ -import base64 -import pickle -from google_auth_oauthlib.flow import InstalledAppFlow - -SCOPES = [ - "https://www.googleapis.com/auth/drive", - "https://www.googleapis.com/auth/docs", - "https://www.googleapis.com/auth/spreadsheets", -] -def main(): - flow = InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES) - creds = flow.run_local_server(port=8081) - if not creds or not creds.valid: - print("There is issue with credentials. Please check.") - exit(0) - print("\n\nCopy pickle string which is present in single quotes and save. Paste it during installation GWorkspace Function App:\n\n{}".format(base64.b64encode(pickle.dumps(creds)))) - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/scripts/google_pickle_string/requirements.txt b/scripts/google_pickle_string/requirements.txt deleted file mode 100644 index d91c2fef..00000000 --- a/scripts/google_pickle_string/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -google-api-python-client==2.153.0 -google-auth-httplib2==0.2.0 -google-auth-oauthlib==1.2.1 \ No newline at end of file