csc-cia-stne 0.0.44__tar.gz → 0.0.46__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/PKG-INFO +1 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/pyproject.toml +1 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/__init__.py +1 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/logger_rich.py +4 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/provio.py +3 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/LICENCE +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/README.md +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/README_PYPI.md +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/setup.cfg +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/bc_correios.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/bc_sta.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/email.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/gcp_bigquery.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/google_drive.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/karavela.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/logger_json.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/servicenow.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/slack.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/stne_admin.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne.egg-info/requires.txt +0 -0
- {csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/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.0.
|
7
|
+
version = "0.0.46"
|
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"]
|
@@ -62,7 +62,7 @@ def _running_in_container():
|
|
62
62
|
|
63
63
|
return False
|
64
64
|
|
65
|
-
def logger(nome:str=
|
65
|
+
def logger(nome:str='__main__'):
|
66
66
|
"""
|
67
67
|
Retorna um objeto logger com base no ambiente de execução.
|
68
68
|
Se a variável de ambiente 'ambiente_de_execucao' estiver definida e for igual a "karavela",
|
@@ -242,7 +242,10 @@ def get_logger(nome):
|
|
242
242
|
|
243
243
|
# Sendo setado aqui pois no basicConfig estava gerando logs para as libs do slack_sdk e big query
|
244
244
|
|
245
|
-
logger.addHandler(CustomRichHandler())
|
245
|
+
#logger.addHandler(CustomRichHandler())
|
246
|
+
# Adiciona o CustomRichHandler se ainda não estiver presente
|
247
|
+
if not any(isinstance(handler, CustomRichHandler) for handler in logger.handlers):
|
248
|
+
logger.addHandler(CustomRichHandler())
|
246
249
|
|
247
250
|
logger.setLevel(log_config_level)
|
248
251
|
|
@@ -4,6 +4,8 @@ from requests.auth import HTTPBasicAuth
|
|
4
4
|
from pydantic import BaseModel, Field, ValidationError
|
5
5
|
from typing import List, Dict, Union
|
6
6
|
|
7
|
+
log = logging.getLogger('__main__')
|
8
|
+
|
7
9
|
# Validadores
|
8
10
|
class ProvioModel(BaseModel):
|
9
11
|
"""
|
@@ -90,7 +92,7 @@ class Provio:
|
|
90
92
|
skip += 500
|
91
93
|
requisicao += 1
|
92
94
|
if verbose:
|
93
|
-
|
95
|
+
log.info(f"Exportando relatório: Requisição #{str(requisicao).zfill(3)}: {len(todos_os_dados)} registros no total")
|
94
96
|
|
95
97
|
else:
|
96
98
|
|
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.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/__init__.py
RENAMED
File without changes
|
{csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_b64.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_settings.py
RENAMED
File without changes
|
{csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/functions/func_titulo.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{csc_cia_stne-0.0.44 → csc_cia_stne-0.0.46}/src/csc_cia_stne/utilitarios/validations/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|