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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.17.12
3
+ Version: 0.17.14
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: BCFOX
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.17.12
3
+ Version: 0.17.14
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: BCFOX
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="bcpkgfox",
5
- version="0.17.12",
5
+ version="0.17.14",
6
6
  author="BCFOX",
7
7
  author_email="bcfox@bcfox.com.br",
8
8
  description="Biblioteca BCFOX",
File without changes
File without changes
File without changes
File without changes