rpa-suite 1.5.2__py3-none-any.whl → 1.5.3__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/dir.py CHANGED
@@ -58,7 +58,8 @@ class Directory():
58
58
 
59
59
  def create_temp_dir(self,
60
60
  path_to_create: str = 'default',
61
- name_temp_dir: str='temp') -> dict[str, Union[bool, str, None]]:
61
+ name_temp_dir: str='temp',
62
+ display_message: bool = False) -> dict[str, Union[bool, str, None]]:
62
63
 
63
64
  """
64
65
  Function responsible for creating a temporary directory to work with files and etc. \n
@@ -69,6 +70,8 @@ class Directory():
69
70
 
70
71
  ``name_temp_dir: str`` - should be a string representing the name of the temporary directory to be created. If it is empty, the ``temp`` value will be used as the default directory name.
71
72
 
73
+ ``display_message: bool`` - should be a bool to display messages on terminal, by default False.
74
+
72
75
  Return:
73
76
  ----------
74
77
  >>> type:dict
@@ -85,6 +88,8 @@ class Directory():
85
88
 
86
89
  ``name_temp_dir: str`` - deve ser uma string representando o nome do diretório temporário a ser criado. Se estiver vazio, o valor ``temp`` será usado como o nome padrão do diretório.
87
90
 
91
+ ``display_message: bool`` - deve ser um bool para exibir mensagens no terminal, por padrão False.
92
+
88
93
  Retorno:
89
94
  ----------
90
95
  >>> type:dict
@@ -115,17 +120,17 @@ class Directory():
115
120
  result['success'] = True
116
121
  result['path_created'] = fr'{full_path}'
117
122
 
118
- success_print(f"Diretório:'{full_path}' foi criado com sucesso.")
123
+ if display_message: success_print(f"Directory:'{full_path}' successfully created.")
119
124
 
120
125
  except FileExistsError:
121
126
  result['success'] = False
122
127
  result['path_created'] = None
123
- alert_print(f"Diretório:'{full_path}' existe.")
128
+ if display_message: alert_print(f"Directory:'{full_path}' already exists.")
124
129
 
125
130
  except PermissionError:
126
131
  result['success'] = False
127
132
  result['path_created'] = None
128
- alert_print(f"Permissão negada: não é possível criar o diretório '{full_path}'.")
133
+ alert_print(f"Permission denied: Not possible to create Directory '{full_path}'.")
129
134
 
130
135
  except Exception as e:
131
136
  result['success'] = False
@@ -139,7 +144,8 @@ class Directory():
139
144
  def delete_temp_dir(self,
140
145
  path_to_delete: str = 'default',
141
146
  name_temp_dir: str='temp',
142
- delete_files: bool = False) -> dict[str, Union[bool, str, None]]:
147
+ delete_files: bool = False,
148
+ display_message: bool = False) -> dict[str, Union[bool, str, None]]:
143
149
 
144
150
  """
145
151
  Function responsible for deleting a temporary directory. \n
@@ -209,16 +215,16 @@ class Directory():
209
215
  result['success'] = True
210
216
  result['path_deleted'] = fr'{full_path}'
211
217
 
212
- success_print(f"Diretório:'{full_path}' foi deletado com sucesso.")
218
+ if display_message: success_print(f"Directory:'{full_path}' successfully delete.")
213
219
  else:
214
220
  result['success'] = False
215
221
  result['path_deleted'] = None
216
- alert_print(f"Diretório:'{full_path}' não existe.")
222
+ if display_message: alert_print(f"Directory:'{full_path}' don't exists.")
217
223
 
218
224
  except PermissionError:
219
225
  result['success'] = False
220
226
  result['path_deleted'] = None
221
- alert_print(f"Permissão negada: não é possível deletar o diretório '{full_path}'.")
227
+ alert_print(f"Permission denied: Not possible to delete Directory '{full_path}'.")
222
228
 
223
229
  except Exception as e:
224
230
  result['success'] = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rpa_suite
3
- Version: 1.5.2
3
+ Version: 1.5.3
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
@@ -62,7 +62,7 @@ Dynamic: summary
62
62
  <br>
63
63
 
64
64
  ## Documentação
65
- - **[Documentação no GitHub](https://github.com/CamiloCCarvalho/rpasuite/blob/master/docs/GUIDE.md)**
65
+ - **[Documentação no GitHub](https://github.com/CamiloCCarvalho/rpasuite/wiki)**
66
66
  Conta com guia de uso , instação e todas funcionalidades.
67
67
 
68
68
  <br>
@@ -268,7 +268,7 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
268
268
 
269
269
  ## Release Notes
270
270
 
271
- ### Versão: **Beta 1.5.2**
271
+ ### Versão: **Beta 1.5.3**
272
272
 
273
273
  - **Data de Lançamento:** *20/02/2024*
274
274
  - **Última Atualização:** *17/04/2025*
@@ -5,7 +5,7 @@ rpa_suite/core/asyncrun.py,sha256=S5b-ueG4oJmupBZLsfYqcyTA5k5SaAi8j3KU8NnTOMg,43
5
5
  rpa_suite/core/browser.py,sha256=h1sMERkEw8y8zfQs2hdv2VbBNt3pQlVkMlkQOTKpaKQ,14755
6
6
  rpa_suite/core/clock.py,sha256=zEPYkHdzsxvLen1x7GImdEMhNnGgYZ-0sy5XBlVdDPc,13846
7
7
  rpa_suite/core/date.py,sha256=0dqkP7zVjWeMmZA5xDZuvin97yYPMl1p0bCfLmtXdlM,6635
8
- rpa_suite/core/dir.py,sha256=sc_mJGrjo520cmNyC_HZo3YKEbORkBDfD3bCLaQ7U2o,9855
8
+ rpa_suite/core/dir.py,sha256=EmMnnkMeb0fKUbbOiEC7uqwuEvwZR4ymwkumulRZa1g,10248
9
9
  rpa_suite/core/email.py,sha256=CUqhW8-BF0XS7vFeZieQ13VywEg1TQZVoicEexSQCPE,8671
10
10
  rpa_suite/core/file.py,sha256=8eKlOSRptCYDJ-zRrHYK7tnmxR-JjQ55U47BRRdMGRE,11621
11
11
  rpa_suite/core/log.py,sha256=7VTPKXzVkWMg1W5bBO6BM3XDihKqNOcB4D-d6ytDbts,5631
@@ -18,8 +18,8 @@ rpa_suite/functions/__init__.py,sha256=aa0jejVvnghufR50owKcKpmYit7XVAliyN9gn9Jkd
18
18
  rpa_suite/functions/_printer.py,sha256=51Xbqr0Ck7HHOrhJCxhMxdCKrF_kQ5AsKZN5SZQPwpk,3991
19
19
  rpa_suite/utils/__init__.py,sha256=RQ-m9QNbaByek25moxx9ajpuxjPAEdjoMu69ReLBCWY,675
20
20
  rpa_suite/utils/system.py,sha256=fQ9BAWxVETrFUeZJlfhN3cLzToU3XDQYqvDS9W0hWgY,1157
21
- rpa_suite-1.5.2.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
22
- rpa_suite-1.5.2.dist-info/METADATA,sha256=-xlPDj6qv234kcMJdexKIzu1Oua38Ockaf9DpT-lx1I,13894
23
- rpa_suite-1.5.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
24
- rpa_suite-1.5.2.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
25
- rpa_suite-1.5.2.dist-info/RECORD,,
21
+ rpa_suite-1.5.3.dist-info/licenses/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
22
+ rpa_suite-1.5.3.dist-info/METADATA,sha256=Pspz8xrRL7qj6TOW-bFmUIMsJa4qLKr1zM0a09uafuk,13873
23
+ rpa_suite-1.5.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
24
+ rpa_suite-1.5.3.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
25
+ rpa_suite-1.5.3.dist-info/RECORD,,