csc-cia-stne 0.1.21__tar.gz → 0.1.22__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.22}/PKG-INFO +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/pyproject.toml +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/bc_sta.py +12 -5
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/LICENCE +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/README.md +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/README_PYPI.md +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/setup.cfg +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/bc_correios.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/email.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/ftp.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/gcp_bigquery.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/google_drive.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/karavela.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/logger_json.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/logger_rich.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/provio.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/servicenow.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/slack.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/stne_admin.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_datetime.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_delete.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_get_secret.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/functions/func_validate_json.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/ftp.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/waccess.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/validations/web_validator.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/web_screen/__init__.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/web_screen/web_screen_abstract.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/web_screen/web_screen_botcity.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/utilitarios/web_screen/web_screen_selenium.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/wacess.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne/web.py +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/src/csc_cia_stne.egg-info/requires.txt +0 -0
- {csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/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.22"
|
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"]
|
@@ -539,7 +539,8 @@ class BC_STA:
|
|
539
539
|
|
540
540
|
if response.status_code != 200:
|
541
541
|
log.error(f"Erro ao listar arquivos: response code {response.status_code}\n{response.text}")
|
542
|
-
|
542
|
+
resposta = {"success": False, "status_code": int(response.status_code), "content": response.text}
|
543
|
+
return resposta
|
543
544
|
|
544
545
|
try:
|
545
546
|
dados = xml_response_to_json(response.text)
|
@@ -572,7 +573,9 @@ class BC_STA:
|
|
572
573
|
|
573
574
|
if not ultimo:
|
574
575
|
log.error("Campo 'DataHoraDisponibilizacao' não encontrado ou estrutura inesperada.")
|
575
|
-
|
576
|
+
resposta = {"success": False, "status_code": 500, "content": "Campo 'DataHoraDisponibilizacao' não encontrado ou estrutura inesperada."}
|
577
|
+
return resposta
|
578
|
+
#return False
|
576
579
|
|
577
580
|
# Cursor: último + 1s para evitar repetir o mesmo registro
|
578
581
|
proxima_dt = datetime.fromisoformat(ultimo) + timedelta(seconds=1)
|
@@ -585,12 +588,16 @@ class BC_STA:
|
|
585
588
|
|
586
589
|
except ET.ParseError as e:
|
587
590
|
log.error(f"Erro ao processar XML: {e}")
|
588
|
-
|
591
|
+
resposta = {"success": False, "status_code": 500, "content": f"Erro ao processar XML: {e}"}
|
592
|
+
return resposta
|
593
|
+
#return False
|
589
594
|
|
590
|
-
return resultados
|
595
|
+
return {"success": True, "status_code": 200, "content": resultados}
|
596
|
+
#return resultados
|
591
597
|
except Exception as e:
|
592
598
|
log.error(f"Erro em BC_STA:listar_arquivos: {e}")
|
593
|
-
|
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.22}/src/csc_cia_stne/utilitarios/functions/__init__.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/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.22}/src/csc_cia_stne/utilitarios/functions/func_datetime.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/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.22}/src/csc_cia_stne/utilitarios/functions/func_settings.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/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.22}/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.22}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py
RENAMED
File without changes
|
{csc_cia_stne-0.1.21 → csc_cia_stne-0.1.22}/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.22}/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
|