isrpa 1.0.5__tar.gz → 1.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {isrpa-1.0.5 → isrpa-1.0.6}/PKG-INFO +1 -1
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/utils.py +7 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa.egg-info/PKG-INFO +1 -1
- {isrpa-1.0.5 → isrpa-1.0.6}/setup.py +1 -1
- {isrpa-1.0.5 → isrpa-1.0.6}/README.md +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/OCR.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/Template.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/Template_Exception.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/__init__.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/credentials.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/llm_chat.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa/message.py +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa.egg-info/SOURCES.txt +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa.egg-info/dependency_links.txt +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa.egg-info/requires.txt +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/isrpa.egg-info/top_level.txt +0 -0
- {isrpa-1.0.5 → isrpa-1.0.6}/setup.cfg +0 -0
@@ -1,11 +1,14 @@
|
|
1
1
|
import os
|
2
2
|
|
3
|
+
import redis
|
3
4
|
import requests
|
4
5
|
import tldextract
|
5
6
|
from dotenv import load_dotenv
|
6
7
|
|
7
8
|
load_dotenv("/isearch/aiAgent/.env", override=True)
|
8
9
|
address = os.getenv("address")
|
10
|
+
client = redis.Redis(host=os.getenv("REDIS_HOST"), port=os.getenv("REDIS_PORT"), db=os.getenv("REDIS_DB"),
|
11
|
+
password=os.getenv("REDIS_PASSWORD"))
|
9
12
|
|
10
13
|
|
11
14
|
def getPath(user_name):
|
@@ -106,6 +109,10 @@ def get_active_page(browser, active_url):
|
|
106
109
|
return page
|
107
110
|
|
108
111
|
|
112
|
+
def set_playwright_file_path(key, value):
|
113
|
+
client.set(key, value, ex=30)
|
114
|
+
|
115
|
+
|
109
116
|
def upload_file(file_path, dest_file, user_name):
|
110
117
|
"""
|
111
118
|
通知客户端上传文件
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|