csc-cia-stne 0.0.40__tar.gz → 0.0.41__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.
Files changed (35) hide show
  1. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/PKG-INFO +1 -1
  2. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/pyproject.toml +1 -1
  3. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/gcp_bigquery.py +9 -9
  4. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/slack.py +4 -4
  5. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
  6. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/LICENCE +0 -0
  7. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/README.md +0 -0
  8. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/README_PYPI.md +0 -0
  9. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/setup.cfg +0 -0
  10. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/__init__.py +0 -0
  11. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/bc_correios.py +0 -0
  12. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/bc_sta.py +0 -0
  13. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/email.py +0 -0
  14. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/google_drive.py +0 -0
  15. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/karavela.py +0 -0
  16. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/logger_json.py +0 -0
  17. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/logger_rich.py +0 -0
  18. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/provio.py +0 -0
  19. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/servicenow.py +0 -0
  20. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/stne_admin.py +0 -0
  21. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
  22. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
  23. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
  24. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
  25. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
  26. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
  27. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
  28. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
  29. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
  30. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
  31. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
  32. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
  33. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
  34. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne.egg-info/requires.txt +0 -0
  35. {csc_cia_stne-0.0.40 → csc_cia_stne-0.0.41}/src/csc_cia_stne.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: csc_cia_stne
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "csc_cia_stne"
7
- version = "0.0.40"
7
+ version = "0.0.41"
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"]
@@ -111,19 +111,19 @@ class BigQuery():
111
111
 
112
112
  error = ""
113
113
 
114
+ job_config = bigquery.QueryJobConfig(
115
+ priority=bigquery.QueryPriority.INTERACTIVE,
116
+ use_legacy_sql=use_legacy,
117
+ use_query_cache=use_cache,
118
+ query_parameters=[
119
+ bigquery.ScalarQueryParameter(param["name"], param["type"], param["value"]) for param in query_parameters
120
+ ],
121
+ )
122
+
114
123
  for try_out in range(self.limit):
115
124
 
116
125
  try:
117
126
 
118
- job_config = bigquery.QueryJobConfig(
119
- priority=bigquery.QueryPriority.INTERACTIVE,
120
- use_legacy_sql=use_legacy,
121
- use_query_cache=use_cache,
122
- query_parameters=[
123
- bigquery.ScalarQueryParameter(param["name"], param["type"], param["value"]) for param in query_parameters
124
- ],
125
- )
126
-
127
127
  result_query = self.client.query(query_to_execute,job_config=job_config).result()
128
128
 
129
129
  error = False
@@ -32,7 +32,7 @@ class InitParamsValidator(BaseModel):
32
32
  - ValueError: Se o valor não for uma string ou estiver vazio.
33
33
  """
34
34
  @field_validator('channel_id')
35
- def validate_token_slack(cls, value, info):
35
+ def validate_str(cls, value, info):
36
36
  if not isinstance(value, str) or not value.strip():
37
37
  raise ValueError(f"O campo '{info.field_name}' deve ser strings e não {type(value)}")
38
38
  return value
@@ -48,8 +48,8 @@ class InitParamsValidator(BaseModel):
48
48
  - ValueError: Se o valor não for um dicionário ou uma string vazia.
49
49
  """
50
50
  @field_validator('token_slack')
51
- def validate_token_slack_dict(cls, value, info):
52
- if not isinstance(value, dict) or (not isinstance(value, str) or not value.strip()):
51
+ def validate_dict(cls, value, info):
52
+ if not isinstance(value, dict) and (not isinstance(value, str) or not value.strip()):
53
53
  raise ValueError(f"O campo '{info.field_name}' deve ser strings e não {type(value)}")
54
54
  return value
55
55
 
@@ -64,7 +64,7 @@ class InitParamsValidator(BaseModel):
64
64
  - ValueError: Se o valor não for um booleano.
65
65
  """
66
66
  @field_validator('on_base64')
67
- def validate_token_slack(cls, value, info):
67
+ def validate_bool(cls, value, info):
68
68
  if not isinstance(value, bool):
69
69
  raise ValueError(f"O campo '{info.field_name}' deve ser strings e não {type(value)}")
70
70
  return value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: csc_cia_stne
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa
File without changes
File without changes
File without changes