csc-cia-stne 0.0.50__tar.gz → 0.0.52__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 (37) hide show
  1. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/PKG-INFO +3 -2
  2. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/pyproject.toml +3 -2
  3. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/validations/web_validator.py +1 -1
  4. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/web.py +9 -23
  5. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne.egg-info/PKG-INFO +3 -2
  6. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne.egg-info/requires.txt +1 -0
  7. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/LICENCE +0 -0
  8. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/README.md +0 -0
  9. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/README_PYPI.md +0 -0
  10. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/setup.cfg +0 -0
  11. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/__init__.py +0 -0
  12. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/bc_correios.py +0 -0
  13. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/bc_sta.py +0 -0
  14. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/email.py +0 -0
  15. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/gcp_bigquery.py +0 -0
  16. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/google_drive.py +0 -0
  17. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/karavela.py +0 -0
  18. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/logger_json.py +0 -0
  19. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/logger_rich.py +0 -0
  20. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/provio.py +0 -0
  21. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/servicenow.py +0 -0
  22. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/slack.py +0 -0
  23. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/stne_admin.py +0 -0
  24. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
  25. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
  26. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
  27. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
  28. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
  29. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
  30. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
  31. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
  32. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
  33. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
  34. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
  35. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
  36. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
  37. {csc_cia_stne-0.0.50 → csc_cia_stne-0.0.52}/src/csc_cia_stne.egg-info/top_level.txt +0 -0
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: csc_cia_stne
3
- Version: 0.0.50
3
+ Version: 0.0.52
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
- Keywords: karavela,csc,cia,stone,rpa
6
+ Keywords: karavela,csc,cia,stone,rpa,botcity
7
7
  Description-Content-Type: text/markdown
8
8
  License-File: LICENCE
9
+ Requires-Dist: setuptools
9
10
  Requires-Dist: python-json-logger
10
11
  Requires-Dist: rich
11
12
  Requires-Dist: requests
@@ -4,14 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "csc_cia_stne"
7
- version = "0.0.50"
7
+ version = "0.0.52"
8
8
  license = { text = "MIT" }
9
9
  description = "Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs"
10
- keywords = ["karavela", "csc", "cia", "stone", "rpa"]
10
+ keywords = ["karavela", "csc", "cia", "stone", "rpa", "botcity"]
11
11
  readme = "README_PYPI.md" # Referência ao arquivo README
12
12
 
13
13
  # Dependências
14
14
  dependencies = [
15
+ "setuptools",
15
16
  "python-json-logger",
16
17
  "rich",
17
18
  "requests",
@@ -30,7 +30,7 @@ class InitParamsValidator(BaseModel):
30
30
  return value
31
31
 
32
32
  @field_validator('timeout')
33
- def check_str_basic(cls, value, info):
33
+ def check_int_basic(cls, value, info):
34
34
  if not isinstance(value, int):
35
35
  raise ValueError(f"O parametro 'model' deve ser um int e não um {type(value)} e não vazio")
36
36
  return value
@@ -30,11 +30,6 @@ class web_screen():
30
30
  - headless (bool): Define se o navegador será executado em modo headless (sem interface gráfica).
31
31
  - disable_gpu (bool): Define se a aceleração de hardware do GPU será desabilitada.
32
32
  - no_sandbox (bool): Define se o sandbox do navegador será desabilitado.
33
- Retorna:
34
- Um dicionário com as seguintes chaves:
35
- - "success" (bool): Indica se a inicialização foi bem-sucedida.
36
- - "result" (object): O objeto do navegador (webdriver) ou do botcity, dependendo do modelo escolhido.
37
- - "error" (Exception): O erro ocorrido durante a inicialização, caso a inicialização tenha falhado.
38
33
  Raises:
39
34
  - ValueError: Se ocorrer um erro na validação dos dados de entrada da inicialização da instância.
40
35
  """
@@ -67,18 +62,10 @@ class web_screen():
67
62
  service = ChromeService(executable_path=ChromeDriverManager().install())
68
63
 
69
64
  self.web_bot = webdriver.Chrome(service=service, options=chrome_options)
70
-
71
- return {
72
- "success": True,
73
- "result": self.web_bot
74
- }
75
65
 
76
66
  except Exception as e:
77
67
 
78
- return {
79
- "success": False,
80
- "error": e
81
- }
68
+ raise ValueError("Erro na inicialização da classe:", e)
82
69
 
83
70
  else:
84
71
 
@@ -97,19 +84,18 @@ class web_screen():
97
84
  self.web_bot.headless = headless
98
85
  self.web_bot.disable_gpu = disable_gpu
99
86
  self.web_bot.no_sandbox = no_sandbox
100
-
101
- return {
102
- "success": True,
103
- "result": self.web_bot
104
- }
105
87
 
106
88
  except Exception as e:
107
89
 
108
- return {
109
- "success": False,
110
- "error": e
111
- }
90
+ raise ValueError("Erro na inicialização da classe:", e)
91
+
92
+
93
+ def get_bot(self):
94
+ """
95
+ Retorna o objeto web_bot associado a esta instância.
96
+ """
112
97
 
98
+ return self.web_bot
113
99
 
114
100
  def click_on_screen(self, target:str):
115
101
  """
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: csc_cia_stne
3
- Version: 0.0.50
3
+ Version: 0.0.52
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
- Keywords: karavela,csc,cia,stone,rpa
6
+ Keywords: karavela,csc,cia,stone,rpa,botcity
7
7
  Description-Content-Type: text/markdown
8
8
  License-File: LICENCE
9
+ Requires-Dist: setuptools
9
10
  Requires-Dist: python-json-logger
10
11
  Requires-Dist: rich
11
12
  Requires-Dist: requests
@@ -1,3 +1,4 @@
1
+ setuptools
1
2
  python-json-logger
2
3
  rich
3
4
  requests
File without changes
File without changes
File without changes