From 384d03787195c118a2cd48136d9f6c671b8b3fb0 Mon Sep 17 00:00:00 2001 From: khushal Date: Mon, 2 Dec 2024 19:18:42 +0530 Subject: [PATCH] (20241202) Requirements reinstalled. --- api/main.py | 4 ++-- requirements.txt | 32 +++++++++++++++++++++++++++++--- utils_v2/mail/mail_parser.py | 6 +++++- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/api/main.py b/api/main.py index ad9350c..45c11a4 100644 --- a/api/main.py +++ b/api/main.py @@ -83,7 +83,7 @@ from icecream import IceCreamDebugger # All the blueprints: from api.blueprints.mail.oauth_request import mail_oauth_bp from api.blueprints.mail.oauth_callback import mail_callback_bp -# from api.blueprints.mail.sync import mail_sync_bp +from api.blueprints.mail.sync import mail_sync_bp from api.blueprints.tech.chat_alerts import tech_chat_alert_bp from api.blueprints.test.callback import test_callback_bp @@ -115,7 +115,7 @@ app = Quart(__name__, template_folder = r"../views") app = cors(app) app.register_blueprint(mail_oauth_bp, url_prefix = f"/{MODULE_BASE}/mail") app.register_blueprint(mail_callback_bp, url_prefix = f"/{MODULE_BASE}/mail") -# app.register_blueprint(mail_sync_bp, url_prefix = f"/{MODULE_BASE}/mail") +app.register_blueprint(mail_sync_bp, url_prefix = f"/{MODULE_BASE}/mail") app.register_blueprint(tech_chat_alert_bp, url_prefix = f"/{MODULE_BASE}/tech/alert") app.register_blueprint(test_callback_bp, url_prefix = f"/{MODULE_BASE}/test") diff --git a/requirements.txt b/requirements.txt index 076bc79..ab727dc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,13 @@ aiofiles==24.1.0 +aiohappyeyeballs==2.4.4 +aiohttp==3.11.9 aiomysql==0.2.0 +aiosignal==1.3.1 aiosmtplib==3.0.2 annotated-types==0.7.0 anyio==4.6.2.post1 -asttokens==2.4.1 +asttokens==3.0.0 +attrs==24.2.0 beautifulsoup4==4.12.3 blinker==1.9.0 cachetools==5.5.0 @@ -16,18 +20,20 @@ distro==1.9.0 dnspython==2.7.0 executing==2.1.0 Flask==3.1.0 +frozenlist==1.5.0 google-api-core==2.23.0 google-api-python-client==2.154.0 google-auth==2.36.0 google-auth-httplib2==0.2.0 google-auth-oauthlib==1.2.1 googleapis-common-protos==1.66.0 +greenlet==3.1.1 h11==0.14.0 h2==4.1.0 hpack==4.0.0 httpcore==1.0.7 httplib2==0.22.0 -httpx==0.27.2 +httpx==0.28.0 humanize==4.11.0 Hypercorn==0.17.3 hyperframe==6.0.1 @@ -36,19 +42,32 @@ idna==3.10 ipaddress==1.0.23 itsdangerous==2.2.0 Jinja2==3.1.4 +jiter==0.8.0 +jsonpatch==1.33 +jsonpointer==3.0.0 +langchain==0.3.9 +langchain-core==0.3.21 +langchain-openai==0.2.10 +langchain-text-splitters==0.3.2 +langsmith==0.1.147 mail-parser==4.1.2 MarkupSafe==3.0.2 motor==3.6.0 +multidict==6.1.0 numpy==2.1.3 oauthlib==3.2.2 +openai==1.55.3 +orjson==3.10.12 +packaging==24.2 pandas==2.2.3 priority==2.0.0 +propcache==0.2.1 proto-plus==1.25.0 protobuf==5.28.3 psutil==6.1.0 pyasn1==0.6.1 pyasn1_modules==0.4.1 -pydantic==2.10.1 +pydantic==2.10.2 pydantic_core==2.27.1 Pygments==2.18.0 pymongo==4.9.2 @@ -56,16 +75,22 @@ PyMySQL==1.1.1 pyparsing==3.2.0 python-dateutil==2.9.0.post0 pytz==2024.2 +PyYAML==6.0.2 Quart==0.19.9 quart-cors==0.7.0 redis==5.2.0 regex==2024.11.6 requests==2.32.3 requests-oauthlib==2.0.0 +requests-toolbelt==1.0.0 rsa==4.9 six==1.16.0 sniffio==1.3.1 soupsieve==2.6 +SQLAlchemy==2.0.36 +tenacity==9.0.0 +tiktoken==0.8.0 +tqdm==4.67.1 typing_extensions==4.12.2 tzdata==2024.2 tzlocal==5.2 @@ -74,3 +99,4 @@ urllib3==2.2.3 uvicorn==0.32.1 Werkzeug==3.1.3 wsproto==1.2.0 +yarl==1.18.3 diff --git a/utils_v2/mail/mail_parser.py b/utils_v2/mail/mail_parser.py index 7229112..2f01cec 100644 --- a/utils_v2/mail/mail_parser.py +++ b/utils_v2/mail/mail_parser.py @@ -24,7 +24,8 @@ N/A """ -import base64 + + # ***************************************************************************************************************** # ***** **** # *** IMPORT *** @@ -54,6 +55,9 @@ from bs4 import BeautifulSoup # To work with datatypes: from typing import Any, Dict +# To work with base-64 encoding: +import base64 + # ***************************************************************************************************************** # ***** ****