csc-cia-stne 0.1.21__tar.gz → 0.1.23__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.21 → csc_cia_stne-0.1.23}/PKG-INFO +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/pyproject.toml +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/bc_sta.py +17 -10
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/LICENCE +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/README.md +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/README_PYPI.md +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/setup.cfg +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/bc_correios.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/email.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/ftp.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/gcp_bigquery.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/google_drive.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/karavela.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/logger_json.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/logger_rich.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/provio.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/servicenow.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/slack.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/stne_admin.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_datetime.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_delete.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_get_secret.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_validate_json.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/ftp.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/waccess.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/web_validator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/web_screen/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/web_screen/web_screen_abstract.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/web_screen/web_screen_botcity.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/web_screen/web_screen_selenium.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/wacess.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/web.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne.egg-info/requires.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/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.23"
|
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,8 @@ class BC_STA:
|
|
538
544
|
)
|
539
545
|
|
540
546
|
if response.status_code != 200:
|
541
|
-
|
542
|
-
return
|
547
|
+
resposta = {"success": False, "status_code": int(response.status_code), "content": f"Erro ao listar arquivos: {response.text}"}
|
548
|
+
return resposta
|
543
549
|
|
544
550
|
try:
|
545
551
|
dados = xml_response_to_json(response.text)
|
@@ -571,8 +577,8 @@ class BC_STA:
|
|
571
577
|
ultimo = dados["DataHoraDisponibilizacao"]
|
572
578
|
|
573
579
|
if not ultimo:
|
574
|
-
|
575
|
-
return
|
580
|
+
resposta = {"success": False, "status_code": 500, "content": "Campo 'DataHoraDisponibilizacao' não encontrado ou estrutura inesperada."}
|
581
|
+
return resposta
|
576
582
|
|
577
583
|
# Cursor: último + 1s para evitar repetir o mesmo registro
|
578
584
|
proxima_dt = datetime.fromisoformat(ultimo) + timedelta(seconds=1)
|
@@ -584,13 +590,14 @@ class BC_STA:
|
|
584
590
|
ultima_dt = proxima_dt
|
585
591
|
|
586
592
|
except ET.ParseError as e:
|
587
|
-
|
588
|
-
return
|
593
|
+
resposta = {"success": False, "status_code": 500, "content": f"Erro ao processar XML: {e}"}
|
594
|
+
return resposta
|
595
|
+
|
596
|
+
return {"success": True, "status_code": 200, "content": resultados}
|
589
597
|
|
590
|
-
return resultados
|
591
598
|
except Exception as e:
|
592
|
-
|
593
|
-
return
|
599
|
+
resposta = {"success": False, "status_code": 500, "content": f"Erro em BC_STA:listar_arquivos: {e}"}
|
600
|
+
return resposta
|
594
601
|
|
595
602
|
def download_arquivo(self,protocolo:str,filename:str=None):
|
596
603
|
"""Faz o download de um arquivo de um protocolo especifico
|
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.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/__init__.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_b64.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_datetime.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_delete.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/functions/func_settings.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/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.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/__init__.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/src/csc_cia_stne/utilitarios/validations/waccess.py
RENAMED
File without changes
|
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.23}/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
|