csc-cia-stne 0.1.22__tar.gz → 0.1.24__tar.gz
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.
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/PKG-INFO +1 -1
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/pyproject.toml +1 -1
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/bc_sta.py +9 -9
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/LICENCE +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/README.md +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/README_PYPI.md +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/setup.cfg +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/__init__.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/bc_correios.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/email.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/ftp.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/gcp_bigquery.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/google_drive.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/karavela.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/logger_json.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/logger_rich.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/provio.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/servicenow.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/slack.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/stne_admin.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_datetime.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_delete.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_get_secret.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_validate_json.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/ftp.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/waccess.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/web_validator.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/web_screen/__init__.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/web_screen/web_screen_abstract.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/web_screen/web_screen_botcity.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/web_screen/web_screen_selenium.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/wacess.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/web.py +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne.egg-info/requires.txt +0 -0
- {csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne.egg-info/top_level.txt +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "csc_cia_stne"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.24"
|
8
8
|
license = { text = "MIT" }
|
9
9
|
description = "Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs"
|
10
10
|
keywords = ["karavela", "csc", "cia", "stone", "rpa", "botcity", "stne"]
|
@@ -268,11 +268,17 @@ class BC_STA:
|
|
268
268
|
|
269
269
|
# Verificando o status e retornando a resposta
|
270
270
|
if response.status_code == 200:
|
271
|
-
|
271
|
+
|
272
272
|
return True
|
273
273
|
|
274
|
+
elif response.status_code == 401:
|
275
|
+
|
276
|
+
log.error(f"Erro de autenticação no BC STA: Verifique o usuário e a senha.\n{response.text}")
|
277
|
+
return False
|
278
|
+
|
274
279
|
else:
|
275
280
|
|
281
|
+
log.error(f"Erro ao autenticar no BC STA: {response.text}")
|
276
282
|
return False
|
277
283
|
|
278
284
|
|
@@ -538,8 +544,7 @@ class BC_STA:
|
|
538
544
|
)
|
539
545
|
|
540
546
|
if response.status_code != 200:
|
541
|
-
|
542
|
-
resposta = {"success": False, "status_code": int(response.status_code), "content": response.text}
|
547
|
+
resposta = {"success": False, "status_code": int(response.status_code), "content": f"Erro ao listar arquivos: {response.text}"}
|
543
548
|
return resposta
|
544
549
|
|
545
550
|
try:
|
@@ -572,10 +577,8 @@ class BC_STA:
|
|
572
577
|
ultimo = dados["DataHoraDisponibilizacao"]
|
573
578
|
|
574
579
|
if not ultimo:
|
575
|
-
log.error("Campo 'DataHoraDisponibilizacao' não encontrado ou estrutura inesperada.")
|
576
580
|
resposta = {"success": False, "status_code": 500, "content": "Campo 'DataHoraDisponibilizacao' não encontrado ou estrutura inesperada."}
|
577
581
|
return resposta
|
578
|
-
#return False
|
579
582
|
|
580
583
|
# Cursor: último + 1s para evitar repetir o mesmo registro
|
581
584
|
proxima_dt = datetime.fromisoformat(ultimo) + timedelta(seconds=1)
|
@@ -587,15 +590,12 @@ class BC_STA:
|
|
587
590
|
ultima_dt = proxima_dt
|
588
591
|
|
589
592
|
except ET.ParseError as e:
|
590
|
-
log.error(f"Erro ao processar XML: {e}")
|
591
593
|
resposta = {"success": False, "status_code": 500, "content": f"Erro ao processar XML: {e}"}
|
592
594
|
return resposta
|
593
|
-
#return False
|
594
595
|
|
595
596
|
return {"success": True, "status_code": 200, "content": resultados}
|
596
|
-
|
597
|
+
|
597
598
|
except Exception as e:
|
598
|
-
log.error(f"Erro em BC_STA:listar_arquivos: {e}")
|
599
599
|
resposta = {"success": False, "status_code": 500, "content": f"Erro em BC_STA:listar_arquivos: {e}"}
|
600
600
|
return resposta
|
601
601
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/__init__.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_b64.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_datetime.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_delete.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_settings.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/functions/func_titulo.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/__init__.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/validations/waccess.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.22 → csc_cia_stne-0.1.24}/src/csc_cia_stne/utilitarios/web_screen/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|