(20241127) Unicode character fixed.

This commit is contained in:
2024-11-27 16:58:20 +05:30
parent 485a8bd486
commit 7b08e37d2f
+5 -23
View File
@@ -32,9 +32,6 @@
# To make sibling directories accessible for imports: # To make sibling directories accessible for imports:
import sys import sys
from utils_v2.goog.models.data.auth_tokens import GoogleAuthTokens
sys.path.append(".") sys.path.append(".")
sys.path.append("..") sys.path.append("..")
@@ -42,41 +39,26 @@ sys.path.append("..")
import io import io
# My utils: # 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.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.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: # Related to Google:
from google_auth_oauthlib.flow import InstalledAppFlow 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: # To make API calls:
import httpx import httpx
# For asynchronous activities:
import asyncio
# To work with date and time: # To work with date and time:
import datetime import datetime
# For working with datatypes: # For working with datatypes:
from typing import Dict, Literal, List, Any from typing import Literal, List
# For debugging: # For debugging:
from icecream import IceCreamDebugger from icecream import IceCreamDebugger
import inspect import inspect
# For computational help:
import math
# For base64 encoding:
import base64
# ***************************************************************************************************************** # *****************************************************************************************************************
# ***** **** # ***** ****
@@ -195,8 +177,8 @@ class AsyncGoogleBase:
not present at the browser. not present at the browser.
:param approval_prompt: "force" ensures that the consent screen is always shown to the user, regardless of :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 whether the user has previously granted consent for the requested scopes. It forces the user to re-approve
the apps access, which can be useful if the app is requesting new permissions or if the consent needs to be 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 users consent is required if they haven't approved the apps 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 requested permissions yet. "auto" allows Google to automatically determine whether the consent screen should
be shown. be shown.
:param include_granted_scopes: Enables applications to use incremental authorization to request access to :param include_granted_scopes: Enables applications to use incremental authorization to request access to
@@ -465,4 +447,4 @@ class AsyncGoogleBase:
if __name__ == "__main__": if __name__ == "__main__":
pass pass