From 7b08e37d2fecf88d8f91fcbdf0f387dd72f5916d Mon Sep 17 00:00:00 2001 From: khushal Date: Wed, 27 Nov 2024 16:58:20 +0530 Subject: [PATCH] (20241127) Unicode character fixed. --- utils_v2/goog/base.py | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/utils_v2/goog/base.py b/utils_v2/goog/base.py index 4e8b534..f371bdf 100644 --- a/utils_v2/goog/base.py +++ b/utils_v2/goog/base.py @@ -32,9 +32,6 @@ # To make sibling directories accessible for imports: import sys - -from utils_v2.goog.models.data.auth_tokens import GoogleAuthTokens - sys.path.append(".") sys.path.append("..") @@ -42,41 +39,26 @@ sys.path.append("..") import io # My utils: -from utils_v2.string import json -from utils_v2.string import regex from utils_v2.date_time import date_time -from utils_v2.oauth.services.goog import GoogleOAuth from utils_v2.goog.models.data.api_call import GoogleApiResponse -from utils_v2.mail import mail_parser +from utils_v2.goog.models.data.auth_tokens import GoogleAuthTokens # Related to Google: from google_auth_oauthlib.flow import InstalledAppFlow -from google.auth.transport.requests import Request -from google.oauth2.credentials import Credentials -from googleapiclient.discovery import build # To make API calls: import httpx -# For asynchronous activities: -import asyncio - # To work with date and time: import datetime # For working with datatypes: -from typing import Dict, Literal, List, Any +from typing import Literal, List # For debugging: from icecream import IceCreamDebugger import inspect -# For computational help: -import math - -# For base64 encoding: -import base64 - # ***************************************************************************************************************** # ***** **** @@ -195,8 +177,8 @@ class AsyncGoogleBase: not present at the browser. :param approval_prompt: "force" ensures that the consent screen is always shown to the user, regardless of whether the user has previously granted consent for the requested scopes. It forces the user to re-approve - the app’s access, which can be useful if the app is requesting new permissions or if the consent needs to be - explicitly confirmed. "consent" ensures the user’s consent is required if they haven't approved the app’s + the app's access, which can be useful if the app is requesting new permissions or if the consent needs to be + explicitly confirmed. "consent" ensures the user's consent is required if they haven't approved the app's requested permissions yet. "auto" allows Google to automatically determine whether the consent screen should be shown. :param include_granted_scopes: Enables applications to use incremental authorization to request access to @@ -465,4 +447,4 @@ class AsyncGoogleBase: if __name__ == "__main__": - pass \ No newline at end of file + pass