rpa-suite 1.0.3__py3-none-any.whl → 1.1.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/file/screen_shot.py +3 -4
- {rpa_suite-1.0.3.dist-info → rpa_suite-1.1.3.dist-info}/METADATA +3 -3
- {rpa_suite-1.0.3.dist-info → rpa_suite-1.1.3.dist-info}/RECORD +6 -6
- {rpa_suite-1.0.3.dist-info → rpa_suite-1.1.3.dist-info}/LICENSE +0 -0
- {rpa_suite-1.0.3.dist-info → rpa_suite-1.1.3.dist-info}/WHEEL +0 -0
- {rpa_suite-1.0.3.dist-info → rpa_suite-1.1.3.dist-info}/top_level.txt +0 -0
rpa_suite/file/screen_shot.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import os, time
|
4
4
|
from datetime import datetime
|
5
|
-
from rpa_suite import
|
5
|
+
from rpa_suite.log.printer import error_print
|
6
6
|
|
7
7
|
|
8
8
|
try:
|
@@ -56,10 +56,9 @@ def screen_shot(file_path: str, file_name: str = 'screenshot', save_with_date: b
|
|
56
56
|
# if dir not exists create it
|
57
57
|
try:
|
58
58
|
os.makedirs(file_path)
|
59
|
-
rpa.success_print(f"Diretório criado com sucesso em: '{file_path}'!")
|
60
59
|
|
61
60
|
except OSError as e:
|
62
|
-
|
61
|
+
error_print(f"Falha ao criar o diretório em: '{file_path}'! Error: {str(e)}")
|
63
62
|
|
64
63
|
|
65
64
|
if save_with_date: # use date on file name
|
@@ -78,5 +77,5 @@ def screen_shot(file_path: str, file_name: str = 'screenshot', save_with_date: b
|
|
78
77
|
|
79
78
|
except Exception as e:
|
80
79
|
|
81
|
-
|
80
|
+
error_print(f'Erro durante a função {screen_shot.__name__}! Error: {str(e)}')
|
82
81
|
return None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: rpa-suite
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.1.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@triasoftware.com.br
|
@@ -144,7 +144,7 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
|
|
144
144
|
- **file**
|
145
145
|
- **counter** - Funções para contagem de arquivos
|
146
146
|
- **temp_dir** - Funções para diretórios temporários
|
147
|
-
|
147
|
+
- **screen_shot** - Função para criar diretório e arquivo de print com nome do diretório, arquivo e delay personalizáveis
|
148
148
|
- **log**
|
149
149
|
- **logger_uru** - Instanciador de stream e handlefile que cria na pasta raiz do arquivo chamador pasta de log e seta o stream para as funções de log
|
150
150
|
- **functions_logger_uru** - Funções de log parecida com os prints personalizados, setadas e personalizadas para todos log levels usado pelo ´logger_uru´, já escreve no arquivo setado além de gerar o print no terminal
|
@@ -156,7 +156,7 @@ O módulo principal do rpa-suite é dividido em categorias. Cada categoria cont
|
|
156
156
|
- **string_validator** - Função que valida presença de letras, palavras, e texto em strings
|
157
157
|
|
158
158
|
## Release
|
159
|
-
Versão: **Beta 1.
|
159
|
+
Versão: **Beta 1.1.3**
|
160
160
|
|
161
161
|
Lançamento: *20/02/2024*
|
162
162
|
|
@@ -10,7 +10,7 @@ rpa_suite/email/__init__.py,sha256=haPk94yjX88kR5YpzNNFCpzHw0T7fKAEoiaHA3-vAds,1
|
|
10
10
|
rpa_suite/email/sender_smtp.py,sha256=e6DgITLLB1Acx1yQbHBargHT3UGxLDpTdHkQ0w8EgaM,7598
|
11
11
|
rpa_suite/file/__init__.py,sha256=haPk94yjX88kR5YpzNNFCpzHw0T7fKAEoiaHA3-vAds,14
|
12
12
|
rpa_suite/file/counter.py,sha256=vFaqENBC6HLv7dHmEmibsHhLVfumTM6Dh7p-u2g6s5Y,2483
|
13
|
-
rpa_suite/file/screen_shot.py,sha256=
|
13
|
+
rpa_suite/file/screen_shot.py,sha256=CSvalWpVSP2aq_livBNjDpoEskIcPYklplpQHcfKpJI,3197
|
14
14
|
rpa_suite/file/temp_dir.py,sha256=NnoLbpgCm9ZoC2D2mzywo756d8BBt_1fhQeNUUnxsPs,7134
|
15
15
|
rpa_suite/log/__create_log_dir.py,sha256=Lm3qbIhJ0z4zBkRIdR5AFw8voBRaAGuEwr8G-6cSPGg,3318
|
16
16
|
rpa_suite/log/__init__.py,sha256=haPk94yjX88kR5YpzNNFCpzHw0T7fKAEoiaHA3-vAds,14
|
@@ -27,8 +27,8 @@ rpa_suite/regex/list_from_text.py,sha256=HJaV_nhjCjn8UkJgEsnnKO2hYuE-zVDCAH9MD6X
|
|
27
27
|
rpa_suite/validate/__init__.py,sha256=haPk94yjX88kR5YpzNNFCpzHw0T7fKAEoiaHA3-vAds,14
|
28
28
|
rpa_suite/validate/mail_validator.py,sha256=dtFdthDd3gHyJ0uEUT9yPFFP1yyq4TXLxKLV1gqcNMo,2930
|
29
29
|
rpa_suite/validate/string_validator.py,sha256=8dGAHhvZu19yIVOoX-te1pVqVi7cwDrFJKf107cLgvA,5370
|
30
|
-
rpa_suite-1.
|
31
|
-
rpa_suite-1.
|
32
|
-
rpa_suite-1.
|
33
|
-
rpa_suite-1.
|
34
|
-
rpa_suite-1.
|
30
|
+
rpa_suite-1.1.3.dist-info/LICENSE,sha256=5D8PIbs31iGd9i1_MDNg4SzaQnp9sEIULALh2y3WyMI,1102
|
31
|
+
rpa_suite-1.1.3.dist-info/METADATA,sha256=KqM2PL1wUdBj5Q2xdVA7UnfjhK9VpDvu6GmfhmSoM-A,7729
|
32
|
+
rpa_suite-1.1.3.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
33
|
+
rpa_suite-1.1.3.dist-info/top_level.txt,sha256=HYkDtg-kJNAr3F2XAIPyJ-QBbNhk7q6jrqsFt10lz4Y,10
|
34
|
+
rpa_suite-1.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|