rpa-suite 1.6.4__py3-none-any.whl → 1.6.5__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.
rpa_suite/__init__.py CHANGED
@@ -66,7 +66,7 @@ Módulos disponíveis:
66
66
  ``Iris``: Objeto Iris Automação de funções para converter documentos com OCR + IA baseado em ``docling``
67
67
  """
68
68
 
69
- __version__ = "1.6.4"
69
+ __version__ = "1.6.5"
70
70
 
71
71
  # allows importing the rpa_suite module without the package name
72
72
  from .suite import rpa
@@ -52,4 +52,4 @@ if importlib.util.find_spec("docling"):
52
52
  if importlib.util.find_spec("pyautogui"):
53
53
  from .artemis import Artemis
54
54
 
55
- __version__ = "1.6.4"
55
+ __version__ = "1.6.5"
rpa_suite/core/artemis.py CHANGED
@@ -348,11 +348,11 @@ class Artemis:
348
348
  if verbose: print(f"Image found on attempt {attempts} (without confidence): {location}")
349
349
  return location
350
350
  except Exception as error:
351
- ArtemisError(f"Failed attempt without confidence: {error}.") from e
351
+ raise ArtemisError(f"Failed attempt without confidence: {error}.") from e
352
352
  else:
353
- ArtemisError(f"Error during image search (attempt {attempts}): {e}") from e
353
+ raise ArtemisError(f"Error during image search (attempt {attempts}): {e}") from e
354
354
  except Exception as e:
355
- ArtemisError(f"Error during image search (attempt {attempts}): {e}") from e
355
+ raise ArtemisError(f"Error during image search (attempt {attempts}): {e}") from e
356
356
 
357
357
  # Wait before next attempt
358
358
  if time() - start_time < timeout:
@@ -394,7 +394,7 @@ class Artemis:
394
394
  if verbose:
395
395
  success_print(f"Click performed at ({x}, {y}) with {click_button} button.")
396
396
  except Exception as e:
397
- ArtemisError(f"Error performing click: {str(e)}.") from e
397
+ raise ArtemisError(f"Error performing click: {str(e)}.") from e
398
398
 
399
399
 
400
400
  # Convenience functions for specific cases
@@ -420,7 +420,7 @@ class Artemis:
420
420
  search_interval=1.0, # Longer interval for waiting
421
421
  )
422
422
  except Exception as e:
423
- ArtemisError(f"Error waiting and clicking: {str(e)}.") from e
423
+ raise ArtemisError(f"Error waiting and clicking: {str(e)}.") from e
424
424
 
425
425
  def quick_click(self,
426
426
  image_label: str,
@@ -442,4 +442,4 @@ class Artemis:
442
442
  grayscale=True, # Faster
443
443
  )
444
444
  except Exception as e:
445
- ArtemisError(f"Error performing quick click: {str(e)}.") from e
445
+ raise ArtemisError(f"Error performing quick click: {str(e)}.") from e
@@ -94,7 +94,7 @@ class AsyncRunner(Generic[T]):
94
94
 
95
95
  return self
96
96
  except Exception as e:
97
- AsyncRunnerError(f"Erro ao iniciar a execução da função: {str(e)}.") from e
97
+ raise AsyncRunnerError(f"Erro ao iniciar a execução da função: {str(e)}.") from e
98
98
 
99
99
  def is_running(self) -> bool:
100
100
  """
rpa_suite/core/clock.py CHANGED
@@ -163,9 +163,6 @@ class Clock:
163
163
  run = False
164
164
  result["tried"] = not run
165
165
  result["success"] = False
166
- ClockError(
167
- f"An error occurred that prevented the function from executing: {fn_to_exec.__name__} correctly. Error: {str(e)}"
168
- )
169
166
  break
170
167
  else:
171
168
  # Executes the function call only at the time provided in the argument.
@@ -185,7 +182,7 @@ class Clock:
185
182
  result["success"] = False
186
183
  ClockError(
187
184
  f"An error occurred that prevented the function from executing: {fn_to_exec.__name__} correctly. Error: {str(e)}"
188
- ) from e
185
+ )
189
186
  else:
190
187
  time.sleep(30)
191
188
  now = dt.now()
@@ -257,7 +254,7 @@ class Clock:
257
254
  result["success"] = False
258
255
  ClockError(
259
256
  f"Error while trying to wait to execute the function: {fn_to_exec.__name__} \nMessage: {str(e)}"
260
- ) from e
257
+ )
261
258
 
262
259
  return result
263
260
 
@@ -317,7 +314,7 @@ class Clock:
317
314
 
318
315
  except Exception as e:
319
316
  result["success"] = False
320
- ClockError(
317
+ raise ClockError(
321
318
  f"Error while trying to wait to execute the function: {fn_to_exec.__name__} \nMessage: {str(e)}"
322
319
  ) from e
323
320
 
rpa_suite/core/date.py CHANGED
@@ -141,7 +141,7 @@ class Date:
141
141
  except Exception as e:
142
142
  raise e from e
143
143
  except Exception as e:
144
- DateError(f"Error function: {self.get_hms.__name__}! {str(e)}.") from e
144
+ raise DateError(f"Error function: {self.get_hms.__name__}! {str(e)}.") from e
145
145
 
146
146
  def get_dmy(self) -> Tuple[Op[str], Op[str], Op[str]]:
147
147
  """
rpa_suite/core/file.py CHANGED
@@ -220,7 +220,7 @@ class File:
220
220
  alert_print("Flag file not found.")
221
221
 
222
222
  except Exception as e:
223
- FileError(f"Error in function file_scheduling_delete: {str(e)}") from e
223
+ raise FileError(f"Error in function file_scheduling_delete: {str(e)}") from e
224
224
 
225
225
  def count_files(
226
226
  self,
rpa_suite/core/iris.py CHANGED
@@ -108,7 +108,7 @@ class Iris:
108
108
  raise IrisError("Specify the file path for conversion.")
109
109
  self.result_converted = self.engine.convert(path_file)
110
110
  except Exception as e:
111
- raise IrisError(f"Error trying to convert document! {str(e)}.")
111
+ raise IrisError(f"Error trying to convert document! {str(e)} ")
112
112
 
113
113
  def read_document(self, file_path: str = None, result_format=ExportFormats.MARKDOWN, verbose: bool = False) -> Optional[Union[str, dict]]:
114
114
  """
@@ -149,7 +149,7 @@ class Iris:
149
149
  elif result_format == ExportFormats.INDENTEDTEXT:
150
150
  self.last_result = self.result_converted.document._export_to_indented_text()
151
151
  else:
152
- raise IrisError(f"Not supported format: {result_format}.")
152
+ raise IrisError(f"Not supported format: {result_format} ")
153
153
  if verbose:
154
154
  success_print('Iris: Successfully converted!')
155
155
 
@@ -205,7 +205,7 @@ class Iris:
205
205
  self.last_result = self.result_converted.document._export_to_indented_text()
206
206
  self.list_results.append(self.last_result)
207
207
  else:
208
- raise IrisError(f"Not supported format: {result_format}.")
208
+ raise IrisError(f"Not supported format: {result_format} ")
209
209
  if verbose:
210
210
  success_print('Iris: Successfully converted!')
211
211
  except IrisError as ie:
rpa_suite/core/regex.py CHANGED
@@ -87,6 +87,6 @@ class Regex:
87
87
  return False
88
88
 
89
89
  except Exception as e:
90
- RegexError(
90
+ raise RegexError(
91
91
  f"Error in function: {self.check_pattern_in_text.__name__} when trying to check pattern in text. Error: {str(e)}"
92
92
  ) from e
@@ -1,3 +1,3 @@
1
1
  # rpa_suite/functions/__init__.py
2
2
 
3
- __version__ = "1.6.4"
3
+ __version__ = "1.6.5"
@@ -12,4 +12,4 @@ O módulo de utilitários da rpa-suite fornece uma coleção de funções e clas
12
12
  from .system import Tools
13
13
 
14
14
 
15
- __version__ = "1.6.4"
15
+ __version__ = "1.6.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rpa_suite
3
- Version: 1.6.4
3
+ Version: 1.6.5
4
4
  Summary: Conjunto de ferramentas essenciais para Automação RPA com Python, que facilitam o dia a dia de desenvolvimento.
5
5
  Author: Camilo Costa de Carvalho
6
6
  Author-email: camilo.carvalho@vettracode.com
@@ -33,6 +33,7 @@ Requires-Dist: typing
33
33
  Requires-Dist: pillow
34
34
  Requires-Dist: pyautogui
35
35
  Requires-Dist: requests
36
+ Requires-Dist: opencv-python
36
37
  Dynamic: author
37
38
  Dynamic: author-email
38
39
  Dynamic: classifier
@@ -292,7 +293,7 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
292
293
 
293
294
  ## Release Notes
294
295
 
295
- ### Versão: **Beta 1.6.4**
296
+ ### Versão: **Beta 1.6.5**
296
297
 
297
298
  - **Data de Lançamento:** *20/02/2024*
298
299
  - **Última Atualização:** 16/09/2025
@@ -301,7 +302,7 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
301
302
  Esta versão marca um grande avanço no desenvolvimento da RPA Suite, trazendo melhorias significativas na arquitetura, novas funcionalidades e maior simplicidade no uso. Confira as principais mudanças abaixo.
302
303
 
303
304
  ### Notas:
304
- - atualização 1.6.4
305
+ - atualização 1.6.5
305
306
  - Adição Módulo: Iris (OCR-IA)
306
307
  - Feat.: leitura de documento (aceita multiplos formatos)
307
308
  - Feat.: leitura em lote (multiplos docmumentos em uma unica chamada)
@@ -0,0 +1,27 @@
1
+ rpa_suite/__init__.py,sha256=XwzLSVsUu_sDsViSZQPfjvBUOCHvvH9ol7FmYVBjBOc,2915
2
+ rpa_suite/suite.py,sha256=yP-5_YrB_DujKpZXfAcIqgNV5BeTjNbNxB-Jst9UJJo,12361
3
+ rpa_suite/core/__init__.py,sha256=-f7noINfEz2KWCTi6RR5ZvWOtcdYPkBQxx8oxzVyknA,1966
4
+ rpa_suite/core/artemis.py,sha256=BEpJoBATHFLDnrENOlzQ3Gh0EeyiqA8oPPwy_GxN2LQ,17820
5
+ rpa_suite/core/asyncrun.py,sha256=u2VpjalTkou0y_9XcQR_jOtUINfWxisaHOC0fglTVR8,4557
6
+ rpa_suite/core/browser.py,sha256=37desqhn4Vo8dSbz9KSNwLFSmY-WRW7rh0HIqOMjmN4,14566
7
+ rpa_suite/core/clock.py,sha256=jDUucQfASQZhs7E0VwenetKwiEmr9YIlhq9NdLSUmQ8,14138
8
+ rpa_suite/core/date.py,sha256=FAnNuBROotfJtTD6clmgCRp2vdmDC7ytyTbY0AeiJ1o,7417
9
+ rpa_suite/core/dir.py,sha256=8JQg56W8kho8Kk9D78YCNYQmAirBSudvOjVTpO-dbYw,8032
10
+ rpa_suite/core/email.py,sha256=EaJy8keVfRYNUdcIWz2ri9To-W8iZPqiMleDQt9KE3I,8914
11
+ rpa_suite/core/file.py,sha256=K8DosuGMF4vuJIMiGxC6SQSTQK_g1kRoa7Y0fq95QOE,11404
12
+ rpa_suite/core/iris.py,sha256=_RPTFszHnu8IQpRSHy5DXn-Nkq_9nS7TrjkN8fee4FA,9007
13
+ rpa_suite/core/log.py,sha256=rsQ-sSi0dahvMBUvRPDE72nR9lBzncRS5mf9eqc8U1E,10474
14
+ rpa_suite/core/parallel.py,sha256=hcycdS8TZU8R3DsFAukBBOc5_IutLDu8PlaH3K1WJbs,12705
15
+ rpa_suite/core/print.py,sha256=-0oUO3sVTft2_dc6E4OkchyZLR2zJPHne4ZOn65rw20,6533
16
+ rpa_suite/core/regex.py,sha256=4KxgRIXc8E6LFLb0SGneDtru2Hi96AsZh0jmA_q6jNc,3018
17
+ rpa_suite/core/validate.py,sha256=XL8y80GK4C_kisg6Lzc0zV4XhfBHiICyn78VCnT-aqc,7567
18
+ rpa_suite/functions/__create_ss_dir.py,sha256=kaRotLlYDCQGKtv9nd8zZUorQmHYGbHmOEWJ1DZBBYc,3426
19
+ rpa_suite/functions/__init__.py,sha256=bJfLWZD9syZttz-Q_xympaqqb_ddcd9m5SfugTOu75E,57
20
+ rpa_suite/functions/_printer.py,sha256=gj7dwOt4roSj2iwOGWeGgUD3JVr7h4UESyCg9CmrieA,3946
21
+ rpa_suite/utils/__init__.py,sha256=l7SuuA6wSMbRfoomqLd-lveswj_fI_4b8xoi-g4hmwk,729
22
+ rpa_suite/utils/system.py,sha256=3g3Pwt-bFUPIY2UQzN7EVSH7OJ_cd35Vs8x3w1I24jk,4938
23
+ rpa_suite-1.6.5.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
24
+ rpa_suite-1.6.5.dist-info/METADATA,sha256=4h4VMKZBuskozV3PMhG2cBp4U2VRs6fbXS_HYxzDDio,13220
25
+ rpa_suite-1.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ rpa_suite-1.6.5.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
27
+ rpa_suite-1.6.5.dist-info/RECORD,,
@@ -1,27 +0,0 @@
1
- rpa_suite/__init__.py,sha256=OIvAxlghJJ6FDl6gckeQiolnfNvD_U3tkFWo28gQ-OI,2915
2
- rpa_suite/suite.py,sha256=yP-5_YrB_DujKpZXfAcIqgNV5BeTjNbNxB-Jst9UJJo,12361
3
- rpa_suite/core/__init__.py,sha256=UlE3dIXFhdyc3C-IX8XbsojwWxtMgTRCGEU_8k-dDtw,1966
4
- rpa_suite/core/artemis.py,sha256=QjyTxXK48kCJpwpGBIfHupGSpmwhCsMDuWwMuxSXPRE,17784
5
- rpa_suite/core/asyncrun.py,sha256=VP7x5KN_qxXUL0AdA6evklPgHCRRqgyyqhWYuQHFye8,4551
6
- rpa_suite/core/browser.py,sha256=37desqhn4Vo8dSbz9KSNwLFSmY-WRW7rh0HIqOMjmN4,14566
7
- rpa_suite/core/clock.py,sha256=czjUN4m1NyPxD9eO59DRfn7IRbycXlrJSFwePBnBbSY,14353
8
- rpa_suite/core/date.py,sha256=dvtXU43qK8zbcwmpdpSYM3Y7LtQAUR8ByB7uFw7UTHk,7411
9
- rpa_suite/core/dir.py,sha256=8JQg56W8kho8Kk9D78YCNYQmAirBSudvOjVTpO-dbYw,8032
10
- rpa_suite/core/email.py,sha256=EaJy8keVfRYNUdcIWz2ri9To-W8iZPqiMleDQt9KE3I,8914
11
- rpa_suite/core/file.py,sha256=aBsnoHH0QjyNnhW0KDxF7TrLUuI51Rz7R4sfOitZe_g,11398
12
- rpa_suite/core/iris.py,sha256=qhQqVoJe_PQGvZt0e9_-VXNXVN16_UM0PxF_U8nZuJ0,9007
13
- rpa_suite/core/log.py,sha256=rsQ-sSi0dahvMBUvRPDE72nR9lBzncRS5mf9eqc8U1E,10474
14
- rpa_suite/core/parallel.py,sha256=hcycdS8TZU8R3DsFAukBBOc5_IutLDu8PlaH3K1WJbs,12705
15
- rpa_suite/core/print.py,sha256=-0oUO3sVTft2_dc6E4OkchyZLR2zJPHne4ZOn65rw20,6533
16
- rpa_suite/core/regex.py,sha256=f5aDw3pZ7xG7qpsTzHIr6nlD93FZTBXMMG--v448oY0,3012
17
- rpa_suite/core/validate.py,sha256=XL8y80GK4C_kisg6Lzc0zV4XhfBHiICyn78VCnT-aqc,7567
18
- rpa_suite/functions/__create_ss_dir.py,sha256=kaRotLlYDCQGKtv9nd8zZUorQmHYGbHmOEWJ1DZBBYc,3426
19
- rpa_suite/functions/__init__.py,sha256=ZLWkPNodmBIuPY9Unt83XfnnMRA4h36yj4mkjmE83cM,57
20
- rpa_suite/functions/_printer.py,sha256=gj7dwOt4roSj2iwOGWeGgUD3JVr7h4UESyCg9CmrieA,3946
21
- rpa_suite/utils/__init__.py,sha256=H0zGvnDPyUaqcxlQmscSaMZclN1yQzbNQrnF5WmUzt4,729
22
- rpa_suite/utils/system.py,sha256=3g3Pwt-bFUPIY2UQzN7EVSH7OJ_cd35Vs8x3w1I24jk,4938
23
- rpa_suite-1.6.4.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
24
- rpa_suite-1.6.4.dist-info/METADATA,sha256=1ydxiXwxUDVa933wOpyEZcBL3TdaONWt-YxAOiiN9ok,13190
25
- rpa_suite-1.6.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- rpa_suite-1.6.4.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
27
- rpa_suite-1.6.4.dist-info/RECORD,,