isrpa 1.1.2__tar.gz → 1.1.3__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.1.2 → isrpa-1.1.3}/PKG-INFO +1 -1
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/utils.py +31 -19
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa.egg-info/PKG-INFO +1 -1
- {isrpa-1.1.2 → isrpa-1.1.3}/setup.py +1 -1
- {isrpa-1.1.2 → isrpa-1.1.3}/README.md +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/OCR.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/Template.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/Template_Exception.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/__init__.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/credentials.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/llm_chat.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa/message.py +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa.egg-info/SOURCES.txt +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa.egg-info/dependency_links.txt +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa.egg-info/requires.txt +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/isrpa.egg-info/top_level.txt +0 -0
- {isrpa-1.1.2 → isrpa-1.1.3}/setup.cfg +0 -0
@@ -60,13 +60,17 @@ def get_ssh_path(user_name):
|
|
60
60
|
port = data.get('port')
|
61
61
|
|
62
62
|
def get_ws_url():
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
63
|
+
for _ in range(3):
|
64
|
+
try:
|
65
|
+
url = f"http://localhost:{port}/json/version"
|
66
|
+
r = requests.get(url, headers={"Connection": "close"}, stream=True, timeout=5)
|
67
|
+
if r.status_code != 200:
|
68
|
+
return "failure"
|
69
|
+
url = r.json().get('webSocketDebuggerUrl')
|
70
|
+
r.close()
|
71
|
+
return url
|
72
|
+
except Exception as e:
|
73
|
+
pass
|
70
74
|
|
71
75
|
ws_url = get_ws_url()
|
72
76
|
return ws_url
|
@@ -86,11 +90,15 @@ def get_url(user_name):
|
|
86
90
|
port = data.get('port')
|
87
91
|
|
88
92
|
def get_json():
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
93
|
+
for _ in range(3):
|
94
|
+
try:
|
95
|
+
url = f"http://localhost:{port}/json"
|
96
|
+
response = requests.get(url, headers={"Connection": "close"}, stream=True, timeout=5)
|
97
|
+
if response.status_code != 200:
|
98
|
+
return "failure"
|
99
|
+
return response.json()
|
100
|
+
except Exception as e:
|
101
|
+
pass
|
94
102
|
|
95
103
|
pages = get_json()
|
96
104
|
if pages:
|
@@ -121,13 +129,17 @@ def get_active_url(user_name):
|
|
121
129
|
port = data.get('port')
|
122
130
|
|
123
131
|
def get_json():
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
132
|
+
for _ in range(3):
|
133
|
+
try:
|
134
|
+
url = f"http://localhost:{port}/json"
|
135
|
+
r = requests.get(url, headers={"Connection": "close"}, stream=True, timeout=5)
|
136
|
+
if r.status_code != 200:
|
137
|
+
return "failure"
|
138
|
+
json_data = r.json()
|
139
|
+
r.close()
|
140
|
+
return json_data
|
141
|
+
except Exception as e:
|
142
|
+
pass
|
131
143
|
|
132
144
|
pages = get_json()
|
133
145
|
if pages:
|
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
|