bcpkgfox 0.17.11__py3-none-any.whl → 0.17.13__py3-none-any.whl

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.

Potentially problematic release.


This version of bcpkgfox might be problematic. Click here for more details.

bcpkgfox/invoke_api.py CHANGED
@@ -170,6 +170,22 @@ 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, header):
174
+ import requests
175
+
176
+ url = "https://api-4.bcfox.com.br/bcjur/log/painel"
177
+
178
+ payload = {
179
+ "id": idrobo,
180
+ "step": step,
181
+ "status": status_robo,
182
+ "description": description,
183
+ "error_type": error_type
184
+ }
185
+
186
+ response = requests.post(url, json=payload, headers=header)
187
+ response.raise_for_status()
188
+
173
189
  def login_2fac(driver, certificate, system, token, code_timeout=60):
174
190
  import requests
175
191
  import pyautogui
bcpkgfox/login_2factor.py CHANGED
@@ -27,7 +27,6 @@ class Login2facmycena:
27
27
  if self.codes:
28
28
  return self.codes
29
29
  time.sleep(10)
30
- return None
31
30
  return None
32
31
 
33
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.17.11
3
+ Version: 0.17.13
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: BCFOX
@@ -3,11 +3,11 @@ bcpkgfox/clean.py,sha256=80pJDTGmKmPiq73uL1IWopuxqVJF_bj_RVv-njkpl-A,8946
3
3
  bcpkgfox/cli.py,sha256=E1Yahd8jIjUwxM6EMHveDDne5-fh8QeAvAhyATNatEo,33541
4
4
  bcpkgfox/find_elements.py,sha256=oeB-73LqMLoKchozPXuxRkThBju9IgUKqbgU-2AAq0s,23027
5
5
  bcpkgfox/get_driver.py,sha256=ohimk9E2hL6T35IXv0XX0uvWDGCUZvZDlPMnuRjV1R0,30490
6
- bcpkgfox/invoke_api.py,sha256=DSaeHRGAvi0BV05anvZknzuiSBUvv1lmQ35xX_JFyC4,21296
7
- bcpkgfox/login_2factor.py,sha256=FWC7-KP8IeGbyiwgDr9ZhPTlf26iq7Nzl5nhgIjjrdE,3592
6
+ bcpkgfox/invoke_api.py,sha256=DtpunPop6HDczcjiZ_4S61lfPp7RGnpchyGVejxXSFU,21773
7
+ bcpkgfox/login_2factor.py,sha256=atRepywCo6jWn3gYUPIFjNgZY4E0GzRpiNFJkrkIN_c,3563
8
8
  bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
9
- bcpkgfox-0.17.11.dist-info/METADATA,sha256=SqllVVHVNnDKpMkYY9M93OPAQy2tPDox2kKcUkGrhWc,1894
10
- bcpkgfox-0.17.11.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
11
- bcpkgfox-0.17.11.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
- bcpkgfox-0.17.11.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
- bcpkgfox-0.17.11.dist-info/RECORD,,
9
+ bcpkgfox-0.17.13.dist-info/METADATA,sha256=hW6kchU4YZobpypGh0pwmwrVxKn4msjfEbtxg53KgSo,1894
10
+ bcpkgfox-0.17.13.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
11
+ bcpkgfox-0.17.13.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
+ bcpkgfox-0.17.13.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
+ bcpkgfox-0.17.13.dist-info/RECORD,,