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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -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
  通知客户端上传文件
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='isrpa',
5
- version='1.0.5',
5
+ version='1.0.6',
6
6
  packages=find_packages(),
7
7
  install_requires=["requests", "tldextract"],
8
8
  author='ysq',
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