bcpkgfox 0.17.12__tar.gz → 0.17.14__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.
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/PKG-INFO +1 -1
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/invoke_api.py +18 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/setup.py +1 -1
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/README.md +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/clean.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/cli.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/login_2factor.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox/system.py +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.17.12 → bcpkgfox-0.17.14}/setup.cfg +0 -0
|
@@ -170,6 +170,24 @@ def invoke_api_proc_log(link, id_robo, token):
|
|
|
170
170
|
"POST", link, json=payload, headers=headers)
|
|
171
171
|
print(f"\n{responseinsert.json()}")
|
|
172
172
|
|
|
173
|
+
def log_event(idrobo, step, status_robo, description, error_type, token):
|
|
174
|
+
import requests
|
|
175
|
+
headers = {
|
|
176
|
+
"x-access-token": token}
|
|
177
|
+
|
|
178
|
+
url = "https://api-4.bcfox.com.br/bcjur/log/painel"
|
|
179
|
+
|
|
180
|
+
payload = {
|
|
181
|
+
"id": idrobo,
|
|
182
|
+
"step": step,
|
|
183
|
+
"status": status_robo,
|
|
184
|
+
"description": description,
|
|
185
|
+
"error_type": error_type
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
response = requests.post(url, json=payload, headers=headers)
|
|
189
|
+
response.raise_for_status()
|
|
190
|
+
|
|
173
191
|
def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
174
192
|
import requests
|
|
175
193
|
import pyautogui
|
|
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
|
|
File without changes
|