rpa-suite 1.5.7__py3-none-any.whl → 1.5.8__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/core/log.py CHANGED
@@ -66,9 +66,10 @@ class Log:
66
66
  def config_logger(
67
67
  self,
68
68
  path_dir: str = "default",
69
- name_log_dir: str = "Logs",
69
+ name_log_dir: str = "logs",
70
70
  name_file_log: str = "log",
71
71
  filter_words: list[str] = None,
72
+ display_message: bool = False,
72
73
  ):
73
74
  try:
74
75
  self.path_dir = path_dir
@@ -82,9 +83,9 @@ class Log:
82
83
 
83
84
  try:
84
85
  os.makedirs(self.full_path, exist_ok=True)
85
- success_print(f"Diretório:'{self.full_path}' foi criado com sucesso.")
86
+ if display_message: success_print(f"Diretório:'{self.full_path}' foi criado com sucesso.")
86
87
  except FileExistsError:
87
- alert_print(f"Diretório:'{self.full_path}' já existe.")
88
+ if display_message: alert_print(f"Diretório:'{self.full_path}' já existe.")
88
89
  except PermissionError:
89
90
  alert_print(
90
91
  f"Permissão negada: não é possível criar o diretório '{self.full_path}'."
@@ -121,7 +122,7 @@ class Log:
121
122
 
122
123
  def _log(self, level: str, msg: str):
123
124
  """
124
- docstring
125
+ Method to generete logs used from self.
125
126
  """
126
127
  try:
127
128
  # Find the first frame that's not from this log.py file
rpa_suite/utils/system.py CHANGED
@@ -4,7 +4,7 @@
4
4
  from rpa_suite.functions._printer import error_print, success_print
5
5
 
6
6
  # imports third-party
7
- import sys, os, ctypes, traceback
7
+ import sys, os, ctypes
8
8
 
9
9
 
10
10
  class Utils:
@@ -23,7 +23,7 @@ class Utils:
23
23
  try:
24
24
  pass
25
25
  except Exception as e:
26
- error_print(f"Erro durante a inicialização da classe Utils: {str(e)}")
26
+ error_print(f"Erro durante a inicialização da classe Utils: {str(e)}.")
27
27
 
28
28
 
29
29
  def set_importable_dir(self, display_message: bool = False) -> None:
@@ -56,7 +56,7 @@ class Utils:
56
56
 
57
57
  except Exception as e:
58
58
  error_print(
59
- f"Erro ao configurar diretório importável: {str(e)}"
59
+ f"Erro ao configurar diretório importável: {str(e)}."
60
60
  )
61
61
 
62
62
 
@@ -95,7 +95,7 @@ class KeepSessionActive:
95
95
  self.ES_SYSTEM_REQUIRED = 0x00000001
96
96
  self.ES_DISPLAY_REQUIRED = 0x00000002
97
97
  except Exception as e:
98
- error_print(f"Erro ao inicializar KeepSessionActive: {str(e)}")
98
+ error_print(f"Erro ao inicializar KeepSessionActive: {str(e)}.")
99
99
 
100
100
 
101
101
  def __enter__(self) -> None:
@@ -120,7 +120,7 @@ class KeepSessionActive:
120
120
  )
121
121
  return self
122
122
  except Exception as e:
123
- error_print(f"Erro ao configurar estado de execução: {str(e)}")
123
+ error_print(f"Erro ao configurar estado de execução: {str(e)}.")
124
124
  return self
125
125
 
126
126
 
@@ -147,10 +147,12 @@ class KeepSessionActive:
147
147
  try:
148
148
  ctypes.windll.kernel32.SetThreadExecutionState(self.ES_CONTINUOUS)
149
149
  except Exception as e:
150
- error_print(f"Erro ao restaurar estado de execução: {str(e)}")
151
-
152
-
150
+ error_print(f"Erro ao restaurar estado de execução: {str(e)}.")
153
151
 
154
152
  class Tools(Utils):
155
-
156
- KeepSessionActive = KeepSessionActive
153
+ """
154
+ Classe utilitária para gerenciamento de configurações de sistema e diretórios.
155
+
156
+ Fornece métodos para manipulação de caminhos de importação e configurações do sistema.
157
+ """
158
+ keep_session_active: KeepSessionActive = KeepSessionActive
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rpa_suite
3
- Version: 1.5.7
3
+ Version: 1.5.8
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
@@ -284,10 +284,10 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
284
284
 
285
285
  ## Release Notes
286
286
 
287
- ### Versão: **Beta 1.5.7**
287
+ ### Versão: **Beta 1.5.8**
288
288
 
289
289
  - **Data de Lançamento:** *20/02/2024*
290
- - **Última Atualização:** 28/05/2025
290
+ - **Última Atualização:** 02/06/2025
291
291
  - **Status:** Em desenvolvimento
292
292
 
293
293
  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.
@@ -299,12 +299,9 @@ Esta versão marca um grande avanço no desenvolvimento da RPA Suite, trazendo m
299
299
  - Novo submódulo `ParallelRunner` (`Parallel`) para execução de processos em paralelo com suporte a timeout e recuperação de resultados.
300
300
  - Novo submódulo `AsyncRunner` (`Asyn`) para facilitar o uso de funções assíncronas com menos código.
301
301
  - Adicionado suporte à automação de navegadores (inicialmente apenas Chrome).
302
- - Função `get_dma` renomeada para `get_dmy` para padronização em inglês.
303
- - Função `send_email` simplificada para maior compatibilidade.
304
302
  - Melhorias nas descrições e adição de docstrings em todas as funções e objetos.
305
303
  - Submódulo de logs unificado com Loguru, agora com suporte a configuração de diretórios, nomes de arquivos e streams para console e arquivo.
306
- - Regex e busca em textos simplificados, com novas funcionalidades planejadas.
307
- - Melhorias gerais na arquitetura e correções de bugs.
304
+
308
305
 
309
306
  ## Mais Sobre
310
307
 
@@ -8,7 +8,7 @@ rpa_suite/core/date.py,sha256=42Nwvyx-FBBImEyVhBGksmIZ9VSwyFqhQPVeEwSpmtc,6310
8
8
  rpa_suite/core/dir.py,sha256=sN9R-XGIrySAyUYIB3XVHzaZR5ZqcX2Ag-pKZ6G3jpY,10301
9
9
  rpa_suite/core/email.py,sha256=kH6wFPxekXxhqt4ry_gWOzVeV_YBSIzb_xr5CL9FR_8,8741
10
10
  rpa_suite/core/file.py,sha256=plj_sC-j2j2IEQ5NRTssnSNPaPGLBg-RjPwGZPpWsIo,11441
11
- rpa_suite/core/log.py,sha256=WAMGRwQr-zvl7eWR-JLJHQbq4NF4vN68MCc84QMnBfs,6568
11
+ rpa_suite/core/log.py,sha256=ieaAKO3R4H8YW8jcg9KMRjfKd1iRcjGzh2husVnQjgc,6678
12
12
  rpa_suite/core/parallel.py,sha256=nmATr6KimkAplDeh-dGwP6iB9muJ7ygDQ3NoYkEYgIg,11709
13
13
  rpa_suite/core/print.py,sha256=T-O4zaYzfPLKn5tEzgNrWOqRV_p4hAzT-c1Y3JDla24,5825
14
14
  rpa_suite/core/regex.py,sha256=76NjtLaIFM4LuTWLAOusQoOcP_Rub_G2ol9H6CIkTMg,3324
@@ -17,9 +17,9 @@ rpa_suite/functions/__create_ss_dir.py,sha256=oAvZCMRgrBNUpaYGEiNlUFa1XiVYDfOqPb
17
17
  rpa_suite/functions/__init__.py,sha256=nXet0AfuyaazPrJUzfCgE382hONS3QqxDLydo75J6NU,57
18
18
  rpa_suite/functions/_printer.py,sha256=gj7dwOt4roSj2iwOGWeGgUD3JVr7h4UESyCg9CmrieA,3946
19
19
  rpa_suite/utils/__init__.py,sha256=FeMyn0dSuj8gMBrvzk-61mkz4F_hPT6l--vDyMWjxYw,729
20
- rpa_suite/utils/system.py,sha256=KUx3yisPr-eSnORgcBVcGUypoW-xef2e-l5odLAYrnQ,5012
21
- rpa_suite-1.5.7.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
22
- rpa_suite-1.5.7.dist-info/METADATA,sha256=EcOxaInP0RQJUwwZwKprf7nSuc2f-61TpMsbxjZG2sU,13938
23
- rpa_suite-1.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- rpa_suite-1.5.7.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
25
- rpa_suite-1.5.7.dist-info/RECORD,,
20
+ rpa_suite/utils/system.py,sha256=5ggEJoIZttoFZ46SKoQJoMp65exsYDQrzeDqzxqtMP0,5224
21
+ rpa_suite-1.5.8.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
22
+ rpa_suite-1.5.8.dist-info/METADATA,sha256=losVczz4q2NzB6P_Z6wrNkX9tneK8J4m9FpJaerGpHQ,13657
23
+ rpa_suite-1.5.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ rpa_suite-1.5.8.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
25
+ rpa_suite-1.5.8.dist-info/RECORD,,