scorb-api 0.1.0__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.
- scorb_api-0.1.0/LICENSE +21 -0
- scorb_api-0.1.0/PKG-INFO +70 -0
- scorb_api-0.1.0/README.md +50 -0
- scorb_api-0.1.0/pyproject.toml +23 -0
- scorb_api-0.1.0/scorb_api/__init__.py +39 -0
- scorb_api-0.1.0/scorb_api/helpers/http.py +72 -0
- scorb_api-0.1.0/scorb_api/models/authorization.py +34 -0
- scorb_api-0.1.0/scorb_api/models/endpoint.py +40 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/__init__.py +225 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/endpoint_customizado.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_customizadas/__init__.py +8 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/__init__.py +39 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/alcance_excecao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/calculo_alcance.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/calculo_alcance_verba_dependencia.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/cargo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/cenario_visao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/centro_custo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/centro_custo_verba_valor_real.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/check_caderias_total.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/check_caderias_total_por_verba.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/consulta_cadeira_fixo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/consulta_centro_de_custo_fixo_new.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/consulta_centro_de_custo_fixo_old.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/conta_contabil.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/cotacao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/dias_uteis.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/expressao_customizada.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/faixa_salarial_alcance.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/faixa_salarial_esquema.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/faixa_salarial_esquema_item.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/faixa_salarial_reajuste_alcance.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcao_customizada.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario_alocacao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario_plano.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario_salario_previsto.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario_tipo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/funcionario_verba_especifica.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/grupo_cargo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/grupo_centro_custo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/grupo_empregado.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/grupo_nivel_salarial.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/grupo_verba.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/moeda.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/nivel_salarial.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/plano.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/plano_contas.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/posicao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/reajuste_alcance.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/reajuste_alcance_excecao.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/reajuste_alcance_motivo.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/report_calculated_field.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/verba.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/verba_categoria.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/verba_centro_custo_depara.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/verba_conta_contabil_alcance.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/verba_reajuste_conta_contabil.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/__init__.py +10 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/alcance_tipo.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/atributo_customizado.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/cenario.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/cenario_campo.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/cenario_categoria.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/inventario_template.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/projector_template.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/resumo_hc_e_salario_cc_e_empresa.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/tabela_customizada.py +53 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/globais/validation_configuration.py +12 -0
- scorb_api-0.1.0/scorb_api/models/endpoints/tabelas_customizadas/__init__.py +8 -0
- scorb_api-0.1.0/scorb_api/utils/filter_clean_utils.py +72 -0
scorb_api-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 People Analytics Tech
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
scorb_api-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: scorb-api
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Scorb API Client to execute CRUD methods on API
|
|
5
|
+
Author: stone_people_analytics
|
|
6
|
+
Author-email: systems-techpeople@stone.com.br
|
|
7
|
+
Maintainer: diogo56
|
|
8
|
+
Maintainer-email: diogo.amorim2001@gmail.com
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Dist: aiodns (>=3.1.1,<4.0.0)
|
|
16
|
+
Requires-Dist: aiohttp (>=3.9.3,<4.0.0)
|
|
17
|
+
Requires-Dist: python-decouple (>=3.8,<4.0)
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# Scorb API
|
|
21
|
+
|
|
22
|
+
Use scorb functionalities in your python application.
|
|
23
|
+
## Instalation
|
|
24
|
+
```sh
|
|
25
|
+
pip install scorb-api
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
# Configuration
|
|
29
|
+
## Environment variables
|
|
30
|
+
To use scorb-api, you need to set two environment variables:
|
|
31
|
+
```dotenv
|
|
32
|
+
# ---DOTENV EXAMPLE---
|
|
33
|
+
SCORB_USERNAME_API= # Username to authenticate
|
|
34
|
+
SCORB_PASSWORD_API= # Password to authenticate
|
|
35
|
+
SCORB_BASE_URL=https://scorb.com.br/ # Base path of your api instance
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
# Usage Example
|
|
39
|
+
You can use scorb-api in order to create, update and delete registers on all system tables.
|
|
40
|
+
|
|
41
|
+
## List registers
|
|
42
|
+
You can use get methods to list registers of system table. See the following example:
|
|
43
|
+
```python
|
|
44
|
+
from scorb_api import ScorbApiClient
|
|
45
|
+
|
|
46
|
+
# Instantiate ScorbApiClient client object
|
|
47
|
+
client = ScorbApiClient(company="your-company", app_name="your-app-name")
|
|
48
|
+
|
|
49
|
+
# Get the endpoint
|
|
50
|
+
cenario_endpoint = client.globais().cenario()
|
|
51
|
+
|
|
52
|
+
calculo_alcance_enpoint = client.entidades_de_cenario().calculo_alcance(
|
|
53
|
+
cenario_code="cenario_code"
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
custom_entity_enpoint = client.entidades_customizadas().entidade_customizada(
|
|
57
|
+
cenario_code="cenario_code", custom="custom_endpoint_name"
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
custom_table_endpoint = client.tabelas_customizadas().tabela_customizada(
|
|
61
|
+
cenario_code="cenario_code", custom="custom_endpoint_name"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Read will return a list of objects from API.
|
|
65
|
+
cenarios_data = cenario_endpoint.read()
|
|
66
|
+
calculo_alcance_data = calculo_alcance_enpoint.read()
|
|
67
|
+
custom_entity_data = custom_entity_enpoint.read()
|
|
68
|
+
custom_table_data = custom_table_endpoint.read()
|
|
69
|
+
```
|
|
70
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Scorb API
|
|
2
|
+
|
|
3
|
+
Use scorb functionalities in your python application.
|
|
4
|
+
## Instalation
|
|
5
|
+
```sh
|
|
6
|
+
pip install scorb-api
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
# Configuration
|
|
10
|
+
## Environment variables
|
|
11
|
+
To use scorb-api, you need to set two environment variables:
|
|
12
|
+
```dotenv
|
|
13
|
+
# ---DOTENV EXAMPLE---
|
|
14
|
+
SCORB_USERNAME_API= # Username to authenticate
|
|
15
|
+
SCORB_PASSWORD_API= # Password to authenticate
|
|
16
|
+
SCORB_BASE_URL=https://scorb.com.br/ # Base path of your api instance
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
# Usage Example
|
|
20
|
+
You can use scorb-api in order to create, update and delete registers on all system tables.
|
|
21
|
+
|
|
22
|
+
## List registers
|
|
23
|
+
You can use get methods to list registers of system table. See the following example:
|
|
24
|
+
```python
|
|
25
|
+
from scorb_api import ScorbApiClient
|
|
26
|
+
|
|
27
|
+
# Instantiate ScorbApiClient client object
|
|
28
|
+
client = ScorbApiClient(company="your-company", app_name="your-app-name")
|
|
29
|
+
|
|
30
|
+
# Get the endpoint
|
|
31
|
+
cenario_endpoint = client.globais().cenario()
|
|
32
|
+
|
|
33
|
+
calculo_alcance_enpoint = client.entidades_de_cenario().calculo_alcance(
|
|
34
|
+
cenario_code="cenario_code"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
custom_entity_enpoint = client.entidades_customizadas().entidade_customizada(
|
|
38
|
+
cenario_code="cenario_code", custom="custom_endpoint_name"
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
custom_table_endpoint = client.tabelas_customizadas().tabela_customizada(
|
|
42
|
+
cenario_code="cenario_code", custom="custom_endpoint_name"
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
# Read will return a list of objects from API.
|
|
46
|
+
cenarios_data = cenario_endpoint.read()
|
|
47
|
+
calculo_alcance_data = calculo_alcance_enpoint.read()
|
|
48
|
+
custom_entity_data = custom_entity_enpoint.read()
|
|
49
|
+
custom_table_data = custom_table_endpoint.read()
|
|
50
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "scorb-api"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Scorb API Client to execute CRUD methods on API"
|
|
5
|
+
authors = ["stone_people_analytics <systems-techpeople@stone.com.br>"]
|
|
6
|
+
maintainers = [
|
|
7
|
+
"diogo56 <diogo.amorim2001@gmail.com>",
|
|
8
|
+
"guilherme_lsilva <manager.guilherme.silva@gmail.com>",
|
|
9
|
+
"root-who <joaopaulo_gonzaga@outlook.com>",
|
|
10
|
+
]
|
|
11
|
+
packages = [{include = "scorb_api"}]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
|
|
14
|
+
[tool.poetry.dependencies]
|
|
15
|
+
python = "^3.9"
|
|
16
|
+
python-decouple = "^3.8"
|
|
17
|
+
aiodns = "^3.1.1"
|
|
18
|
+
aiohttp = "^3.9.3"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
[build-system]
|
|
22
|
+
requires = ["poetry-core"]
|
|
23
|
+
build-backend = "poetry.core.masonry.api"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
from scorb_api.models.endpoints import Globais
|
|
3
|
+
from scorb_api.models.endpoints import EntidadesDeCenario
|
|
4
|
+
from scorb_api.models.endpoints import TabelasCustomizadas
|
|
5
|
+
from scorb_api.models.endpoints import EntidadesCustomizadas
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
"""This module provides the main client class for the Scorb API."""
|
|
9
|
+
|
|
10
|
+
from scorb_api.models.authorization import Authorization
|
|
11
|
+
|
|
12
|
+
class ScorbApiClient:
|
|
13
|
+
"""
|
|
14
|
+
The main client class for the Scorb API.
|
|
15
|
+
This class provides a client to interact with the Scorb API.
|
|
16
|
+
It provides methods to authenticate, get and set services required by the endpoints,
|
|
17
|
+
and get an endpoint instance by name.
|
|
18
|
+
"""
|
|
19
|
+
def __init__( self, company: str, app_name:str) -> None:
|
|
20
|
+
self.header_auth = Authorization(company=company, app_name=app_name).generate_authorization_header()
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def globais(self)-> Globais:
|
|
24
|
+
return Globais(self.header_auth)
|
|
25
|
+
|
|
26
|
+
def entidades_de_cenario(self)-> EntidadesDeCenario:
|
|
27
|
+
return EntidadesDeCenario(self.header_auth)
|
|
28
|
+
|
|
29
|
+
def entidades_customizadas(self)-> EntidadesCustomizadas:
|
|
30
|
+
return EntidadesCustomizadas(self.header_auth)
|
|
31
|
+
|
|
32
|
+
def tabelas_customizadas(self)-> TabelasCustomizadas:
|
|
33
|
+
return TabelasCustomizadas(self.header_auth)
|
|
34
|
+
|
|
35
|
+
__doc__ = """
|
|
36
|
+
**ScorbApiClient** is a python package to providing
|
|
37
|
+
methods to use Scorb rest api.
|
|
38
|
+
"""
|
|
39
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import aiohttp
|
|
2
|
+
from decouple import config
|
|
3
|
+
from urllib.parse import urljoin
|
|
4
|
+
from typing import Any, Literal
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class HTTPRequest:
|
|
8
|
+
"""Class to handle requests to an API"""
|
|
9
|
+
async def request(
|
|
10
|
+
self,
|
|
11
|
+
endpoint: str,
|
|
12
|
+
method: Literal["get", "post", "put", "patch", "delete"],
|
|
13
|
+
headers: dict = None,
|
|
14
|
+
parameters: dict = None,
|
|
15
|
+
data: Any = None,
|
|
16
|
+
json: Any = None,
|
|
17
|
+
) -> dict:
|
|
18
|
+
request_url = urljoin(base=config("SCORB_BASE_URL"), url=endpoint)
|
|
19
|
+
headers = {**headers} if headers else {}
|
|
20
|
+
response = None
|
|
21
|
+
|
|
22
|
+
async with aiohttp.ClientSession() as session:
|
|
23
|
+
if method == "get":
|
|
24
|
+
response = await session.get(
|
|
25
|
+
url=request_url,
|
|
26
|
+
headers=headers,
|
|
27
|
+
params=parameters,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
elif method == "post":
|
|
31
|
+
response = await session.post(
|
|
32
|
+
url=request_url,
|
|
33
|
+
headers=headers,
|
|
34
|
+
params=parameters,
|
|
35
|
+
data=data,
|
|
36
|
+
json=json,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
elif method == "put":
|
|
40
|
+
response = await session.put(
|
|
41
|
+
url=request_url,
|
|
42
|
+
headers=headers,
|
|
43
|
+
params=parameters,
|
|
44
|
+
data=data,
|
|
45
|
+
json=json,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
elif method == "patch":
|
|
49
|
+
response = await session.patch(
|
|
50
|
+
url=request_url,
|
|
51
|
+
headers=headers,
|
|
52
|
+
params=parameters,
|
|
53
|
+
data=data,
|
|
54
|
+
json=json,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
elif method == "delete":
|
|
58
|
+
response = await session.delete(
|
|
59
|
+
url=request_url,
|
|
60
|
+
headers=headers,
|
|
61
|
+
params=parameters,
|
|
62
|
+
data=data,
|
|
63
|
+
json=json,
|
|
64
|
+
)
|
|
65
|
+
else:
|
|
66
|
+
raise ValueError("Invalid HTTP method")
|
|
67
|
+
|
|
68
|
+
# Check response
|
|
69
|
+
response.raise_for_status()
|
|
70
|
+
response_json = await response.json()
|
|
71
|
+
|
|
72
|
+
return response_json
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""This module handles authorization into Tutto API."""
|
|
2
|
+
from decouple import config
|
|
3
|
+
from scorb_api.helpers.http import HTTPRequest
|
|
4
|
+
import asyncio
|
|
5
|
+
|
|
6
|
+
class Authorization:
|
|
7
|
+
def __init__(self, company: str, app_name: str) -> None:
|
|
8
|
+
self.__http_client = HTTPRequest()
|
|
9
|
+
self.company = company
|
|
10
|
+
self.app_name = app_name
|
|
11
|
+
self.token = None
|
|
12
|
+
|
|
13
|
+
def __get_authentication_body(self) -> dict:
|
|
14
|
+
return {
|
|
15
|
+
"grant_type": "password",
|
|
16
|
+
"username": config("SCORB_USERNAME_API"),
|
|
17
|
+
"password": config("SCORB_PASSWORD_API"),
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
def __request_token(self) -> dict:
|
|
21
|
+
self.token = asyncio.run(
|
|
22
|
+
self.__http_client.request(
|
|
23
|
+
method="post",
|
|
24
|
+
endpoint="token",
|
|
25
|
+
data=self.__get_authentication_body(),
|
|
26
|
+
parameters={"empresa": self.company, "app": self.app_name},
|
|
27
|
+
)
|
|
28
|
+
).get("access_token")
|
|
29
|
+
|
|
30
|
+
def generate_authorization_header(self) -> dict:
|
|
31
|
+
self.__request_token()
|
|
32
|
+
if not self.token:
|
|
33
|
+
raise Exception("The token was not requested yet")
|
|
34
|
+
return {"Authorization": f"Bearer {self.token}"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Module to represent the endpoints of Scorb API."""
|
|
2
|
+
from abc import abstractmethod
|
|
3
|
+
|
|
4
|
+
from scorb_api.helpers.http import HTTPRequest
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Endpoint():
|
|
8
|
+
"""
|
|
9
|
+
Scorb API endpoint class\n
|
|
10
|
+
This abstract class represent an endpoint.\n
|
|
11
|
+
That has some urls to diferent http methods, a body data that will send through the http request and a expected response
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, header_auth) -> None:
|
|
14
|
+
self.base_url = ""
|
|
15
|
+
self.header_auth = header_auth
|
|
16
|
+
self.http_request = HTTPRequest()
|
|
17
|
+
|
|
18
|
+
@abstractmethod
|
|
19
|
+
def read(self):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
@abstractmethod
|
|
23
|
+
def create(self, body):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
@abstractmethod
|
|
27
|
+
def update(self, body):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
@abstractmethod
|
|
31
|
+
def upsert(self, body):
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
@abstractmethod
|
|
35
|
+
def delete(self, id):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
|
|
2
|
+
from scorb_api.models.endpoints.entidade_customizadas import EntidadeCustomizada
|
|
3
|
+
from scorb_api.models.endpoints.globais import (
|
|
4
|
+
ProjectorTemplate, ValidationConfiguration, AlcanceTipo, AtributoCustomizado, CenarioCampo, CenarioCategoria, Cenario, InventarioTemplate, ResumoHCeSalarioCCeEmpresa, TabelaCustomizadaGlobais
|
|
5
|
+
)
|
|
6
|
+
from scorb_api.models.endpoints.entidade_de_cenario import(
|
|
7
|
+
CalculoAlcance,
|
|
8
|
+
CalculoAlcanceVerbaDependencia,
|
|
9
|
+
Cargo,
|
|
10
|
+
CenarioVisao,
|
|
11
|
+
CentroCusto,
|
|
12
|
+
CentroCustoVerbaValorReal,
|
|
13
|
+
ContaContabil,
|
|
14
|
+
Cotacao,
|
|
15
|
+
DiasUteis,
|
|
16
|
+
ExpressaoCustomizada,
|
|
17
|
+
FaixaSalarialAlcance,
|
|
18
|
+
FaixaSalarialEsquema,
|
|
19
|
+
FaixaSalarialEsquemaItem,
|
|
20
|
+
FaixaSalarialReajusteAlcance,
|
|
21
|
+
FuncaoCustomizada,
|
|
22
|
+
Funcionario,
|
|
23
|
+
FuncionarioAlocacao,
|
|
24
|
+
FuncionarioPlano,
|
|
25
|
+
FuncionarioSalarioPrevisto,
|
|
26
|
+
FuncionarioTipo,
|
|
27
|
+
FuncionarioVerbaEspecifica,
|
|
28
|
+
GrupoCargo,
|
|
29
|
+
GrupoCentroCusto,
|
|
30
|
+
GrupoEmpregado,
|
|
31
|
+
GrupoNivelSalarial,
|
|
32
|
+
GrupoVerba,
|
|
33
|
+
Moeda,
|
|
34
|
+
NivelSalarial,
|
|
35
|
+
Plano,
|
|
36
|
+
PlanoContas,
|
|
37
|
+
Posicao,
|
|
38
|
+
ReajusteAlcance,
|
|
39
|
+
ReajusteAlcanceMotivo,
|
|
40
|
+
ReportCalculatedField,
|
|
41
|
+
Verba,
|
|
42
|
+
VerbaCategoria,
|
|
43
|
+
VerbaCentroCustoDepara,
|
|
44
|
+
VerbaContaContabilAlcance,
|
|
45
|
+
VerbaReajusteContaContabil,
|
|
46
|
+
)
|
|
47
|
+
from scorb_api.models.endpoints.tabelas_customizadas import TabelaCustomizada
|
|
48
|
+
|
|
49
|
+
class Globais():
|
|
50
|
+
def __init__(self, header_auth) -> None:
|
|
51
|
+
self.header_auth = header_auth
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def alcance_tipo(self) -> AlcanceTipo:
|
|
55
|
+
return AlcanceTipo(self.header_auth)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def atributo_customizado(self) -> AtributoCustomizado:
|
|
59
|
+
return AtributoCustomizado(self.header_auth)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def cenario(self) -> Cenario:
|
|
63
|
+
return Cenario(self.header_auth)
|
|
64
|
+
|
|
65
|
+
def cenario_field(self) -> CenarioCampo:
|
|
66
|
+
return CenarioCampo(self.header_auth)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def cenario_category(self) -> CenarioCategoria:
|
|
70
|
+
return CenarioCategoria(self.header_auth)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def inventario_template(self) -> InventarioTemplate:
|
|
74
|
+
return InventarioTemplate(self.header_auth)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def projector_template(self) -> ProjectorTemplate:
|
|
78
|
+
return ProjectorTemplate(self.header_auth)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def tabela_customizada(self) -> TabelaCustomizadaGlobais:
|
|
82
|
+
return TabelaCustomizadaGlobais(self.header_auth)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def validation_configuration(self) -> ValidationConfiguration:
|
|
86
|
+
return ValidationConfiguration(self.header_auth)
|
|
87
|
+
|
|
88
|
+
def resumo_hc_e_salario_cc_e_empresa(self) -> ResumoHCeSalarioCCeEmpresa:
|
|
89
|
+
return ResumoHCeSalarioCCeEmpresa(self.header_auth)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class EntidadesDeCenario():
|
|
93
|
+
def __init__(self, header_auth) -> None:
|
|
94
|
+
self.header_auth = header_auth
|
|
95
|
+
|
|
96
|
+
def calculo_alcance(self, cenario_code) -> CalculoAlcance:
|
|
97
|
+
return CalculoAlcance(self.header_auth, cenario_code)
|
|
98
|
+
|
|
99
|
+
def calculo_alcance_verba_dependencia(self, cenario_code) -> CalculoAlcanceVerbaDependencia:
|
|
100
|
+
return CalculoAlcanceVerbaDependencia(self.header_auth, cenario_code)
|
|
101
|
+
|
|
102
|
+
def cargo(self, cenario_code) -> Cargo:
|
|
103
|
+
return Cargo(self.header_auth, cenario_code)
|
|
104
|
+
|
|
105
|
+
def cenario_visao(self, cenario_code) -> CenarioVisao:
|
|
106
|
+
return CenarioVisao(self.header_auth, cenario_code)
|
|
107
|
+
|
|
108
|
+
def centro_custo(self, cenario_code) -> CentroCusto:
|
|
109
|
+
return CentroCusto(self.header_auth, cenario_code)
|
|
110
|
+
|
|
111
|
+
def centro_custo_verba_valor_real(self, cenario_code) -> CentroCustoVerbaValorReal:
|
|
112
|
+
return CentroCustoVerbaValorReal(self.header_auth, cenario_code)
|
|
113
|
+
|
|
114
|
+
def conta_contabil(self, cenario_code) -> ContaContabil:
|
|
115
|
+
return ContaContabil(self.header_auth, cenario_code)
|
|
116
|
+
|
|
117
|
+
def cotacao(self, cenario_code) -> Cotacao:
|
|
118
|
+
return Cotacao(self.header_auth, cenario_code)
|
|
119
|
+
|
|
120
|
+
def dias_uteis(self, cenario_code) -> DiasUteis:
|
|
121
|
+
return DiasUteis(self.header_auth, cenario_code)
|
|
122
|
+
|
|
123
|
+
def expressao_customizada(self, cenario_code) -> ExpressaoCustomizada:
|
|
124
|
+
return ExpressaoCustomizada(self.header_auth, cenario_code)
|
|
125
|
+
|
|
126
|
+
def faixa_salarial_alcance(self, cenario_code) -> FaixaSalarialAlcance:
|
|
127
|
+
return FaixaSalarialAlcance(self.header_auth, cenario_code)
|
|
128
|
+
|
|
129
|
+
def faixa_salarial_esquema(self, cenario_code) -> FaixaSalarialEsquema:
|
|
130
|
+
return FaixaSalarialEsquema(self.header_auth, cenario_code)
|
|
131
|
+
|
|
132
|
+
def faixa_salarial_esquema_item(self, cenario_code) -> FaixaSalarialEsquemaItem:
|
|
133
|
+
return FaixaSalarialEsquemaItem(self.header_auth, cenario_code)
|
|
134
|
+
|
|
135
|
+
def faixa_salarial_reajuste_alcance(self, cenario_code) -> FaixaSalarialReajusteAlcance:
|
|
136
|
+
return FaixaSalarialReajusteAlcance(self.header_auth, cenario_code)
|
|
137
|
+
|
|
138
|
+
def funcao_customizada(self, cenario_code) -> FuncaoCustomizada:
|
|
139
|
+
return FuncaoCustomizada(self.header_auth, cenario_code)
|
|
140
|
+
|
|
141
|
+
def funcionario(self, cenario_code) -> Funcionario:
|
|
142
|
+
return Funcionario(self.header_auth, cenario_code)
|
|
143
|
+
|
|
144
|
+
def funcionario_alocacao(self, cenario_code) -> FuncionarioAlocacao:
|
|
145
|
+
return FuncionarioAlocacao(self.header_auth, cenario_code)
|
|
146
|
+
|
|
147
|
+
def funcionario_plano(self, cenario_code) -> FuncionarioPlano:
|
|
148
|
+
return FuncionarioPlano(self.header_auth, cenario_code)
|
|
149
|
+
|
|
150
|
+
def funcionario_salario_previsto(self, cenario_code) -> FuncionarioSalarioPrevisto:
|
|
151
|
+
return FuncionarioSalarioPrevisto(self.header_auth, cenario_code)
|
|
152
|
+
|
|
153
|
+
def funcionario_tipo(self, cenario_code) -> FuncionarioTipo:
|
|
154
|
+
return FuncionarioTipo(self.header_auth, cenario_code)
|
|
155
|
+
|
|
156
|
+
def funcionario_verba_especifica(self, cenario_code) -> FuncionarioVerbaEspecifica:
|
|
157
|
+
return FuncionarioVerbaEspecifica(self.header_auth, cenario_code)
|
|
158
|
+
|
|
159
|
+
def grupo_cargo(self, cenario_code) -> GrupoCargo:
|
|
160
|
+
return GrupoCargo(self.header_auth, cenario_code)
|
|
161
|
+
|
|
162
|
+
def grupo_centro_custo(self, cenario_code) -> GrupoCentroCusto:
|
|
163
|
+
return GrupoCentroCusto(self.header_auth, cenario_code)
|
|
164
|
+
|
|
165
|
+
def grupo_empregado(self, cenario_code) -> GrupoEmpregado:
|
|
166
|
+
return GrupoEmpregado(self.header_auth, cenario_code)
|
|
167
|
+
|
|
168
|
+
def grupo_nivel_salarial(self, cenario_code) -> GrupoNivelSalarial:
|
|
169
|
+
return GrupoNivelSalarial(self.header_auth, cenario_code)
|
|
170
|
+
|
|
171
|
+
def grupo_verba(self, cenario_code) -> GrupoVerba:
|
|
172
|
+
return GrupoVerba(self.header_auth, cenario_code)
|
|
173
|
+
|
|
174
|
+
def moeda(self, cenario_code) -> Moeda:
|
|
175
|
+
return Moeda(self.header_auth, cenario_code)
|
|
176
|
+
|
|
177
|
+
def nivel_salarial(self, cenario_code) -> NivelSalarial:
|
|
178
|
+
return NivelSalarial(self.header_auth, cenario_code)
|
|
179
|
+
|
|
180
|
+
def plano(self, cenario_code) -> Plano:
|
|
181
|
+
return Plano(self.header_auth, cenario_code)
|
|
182
|
+
|
|
183
|
+
def plano_contas(self, cenario_code) -> PlanoContas:
|
|
184
|
+
return PlanoContas(self.header_auth, cenario_code)
|
|
185
|
+
|
|
186
|
+
def posicao(self, cenario_code) -> Posicao:
|
|
187
|
+
return Posicao(self.header_auth, cenario_code)
|
|
188
|
+
|
|
189
|
+
def reajuste_alcance(self, cenario_code) -> ReajusteAlcance:
|
|
190
|
+
return ReajusteAlcance(self.header_auth, cenario_code)
|
|
191
|
+
|
|
192
|
+
def reajuste_alcance_motivo(self, cenario_code) -> ReajusteAlcanceMotivo:
|
|
193
|
+
return ReajusteAlcanceMotivo(self.header_auth, cenario_code)
|
|
194
|
+
|
|
195
|
+
def report_calculated_field(self, cenario_code) -> ReportCalculatedField:
|
|
196
|
+
return ReportCalculatedField(self.header_auth, cenario_code)
|
|
197
|
+
|
|
198
|
+
def verba(self, cenario_code) -> Verba:
|
|
199
|
+
return Verba(self.header_auth, cenario_code)
|
|
200
|
+
|
|
201
|
+
def verba_categoria(self, cenario_code) -> VerbaCategoria:
|
|
202
|
+
return VerbaCategoria(self.header_auth, cenario_code)
|
|
203
|
+
|
|
204
|
+
def verba_centro_custo_depara(self, cenario_code) -> VerbaCentroCustoDepara:
|
|
205
|
+
return VerbaCentroCustoDepara(self.header_auth, cenario_code)
|
|
206
|
+
|
|
207
|
+
def verba_conta_contabil_alcance(self, cenario_code) -> VerbaContaContabilAlcance:
|
|
208
|
+
return VerbaContaContabilAlcance(self.header_auth, cenario_code)
|
|
209
|
+
|
|
210
|
+
def verba_reajuste_conta_contabil(self, cenario_code) -> VerbaReajusteContaContabil:
|
|
211
|
+
return VerbaReajusteContaContabil(self.header_auth, cenario_code)
|
|
212
|
+
|
|
213
|
+
class EntidadesCustomizadas():
|
|
214
|
+
def __init__(self, header_auth) -> None:
|
|
215
|
+
self.header_auth = header_auth
|
|
216
|
+
|
|
217
|
+
def entidade_customizada(self, cenario_code, custom):
|
|
218
|
+
return EntidadeCustomizada(header_auth=self.header_auth, cenario_code=cenario_code, custom=custom)
|
|
219
|
+
|
|
220
|
+
class TabelasCustomizadas():
|
|
221
|
+
def __init__(self, header_auth) -> None:
|
|
222
|
+
self.header_auth = header_auth
|
|
223
|
+
|
|
224
|
+
def tabela_customizada(self, cenario_code, custom):
|
|
225
|
+
return TabelaCustomizada
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from scorb_api.models.endpoint import Endpoint
|
|
2
|
+
import asyncio
|
|
3
|
+
|
|
4
|
+
class EndpointCustomizado(Endpoint):
|
|
5
|
+
def __init__(self, header_auth, cenario_code, custom) -> None:
|
|
6
|
+
super().__init__(header_auth=header_auth)
|
|
7
|
+
self.base_url = f"/api/SCORC/crud/cenario/{cenario_code}/{custom}"
|
|
8
|
+
|
|
9
|
+
def read(self):
|
|
10
|
+
return asyncio.run(self.http_request.request(f"{self.base_url}/read", "post", headers=self.header_auth))
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from scorb_api.models.endpoints.endpoint_customizado import EndpointCustomizado
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EntidadeCustomizada(EndpointCustomizado):
|
|
5
|
+
def __init__(self, header_auth, cenario_code, custom) -> None:
|
|
6
|
+
super().__init__(
|
|
7
|
+
header_auth=header_auth, cenario_code=cenario_code, custom=custom
|
|
8
|
+
)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from scorb_api.models.endpoints.entidade_de_cenario.calculo_alcance import CalculoAlcance
|
|
2
|
+
from scorb_api.models.endpoints.entidade_de_cenario.calculo_alcance_verba_dependencia import CalculoAlcanceVerbaDependencia
|
|
3
|
+
from scorb_api.models.endpoints.entidade_de_cenario.cargo import Cargo
|
|
4
|
+
from scorb_api.models.endpoints.entidade_de_cenario.cenario_visao import CenarioVisao
|
|
5
|
+
from scorb_api.models.endpoints.entidade_de_cenario.centro_custo import CentroCusto
|
|
6
|
+
from scorb_api.models.endpoints.entidade_de_cenario.centro_custo_verba_valor_real import CentroCustoVerbaValorReal
|
|
7
|
+
from scorb_api.models.endpoints.entidade_de_cenario.conta_contabil import ContaContabil
|
|
8
|
+
from scorb_api.models.endpoints.entidade_de_cenario.cotacao import Cotacao
|
|
9
|
+
from scorb_api.models.endpoints.entidade_de_cenario.dias_uteis import DiasUteis
|
|
10
|
+
from scorb_api.models.endpoints.entidade_de_cenario.expressao_customizada import ExpressaoCustomizada
|
|
11
|
+
from scorb_api.models.endpoints.entidade_de_cenario.faixa_salarial_alcance import FaixaSalarialAlcance
|
|
12
|
+
from scorb_api.models.endpoints.entidade_de_cenario.faixa_salarial_esquema import FaixaSalarialEsquema
|
|
13
|
+
from scorb_api.models.endpoints.entidade_de_cenario.faixa_salarial_esquema_item import FaixaSalarialEsquemaItem
|
|
14
|
+
from scorb_api.models.endpoints.entidade_de_cenario.faixa_salarial_reajuste_alcance import FaixaSalarialReajusteAlcance
|
|
15
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcao_customizada import FuncaoCustomizada
|
|
16
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario import Funcionario
|
|
17
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario_alocacao import FuncionarioAlocacao
|
|
18
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario_plano import FuncionarioPlano
|
|
19
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario_salario_previsto import FuncionarioSalarioPrevisto
|
|
20
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario_tipo import FuncionarioTipo
|
|
21
|
+
from scorb_api.models.endpoints.entidade_de_cenario.funcionario_verba_especifica import FuncionarioVerbaEspecifica
|
|
22
|
+
from scorb_api.models.endpoints.entidade_de_cenario.grupo_cargo import GrupoCargo
|
|
23
|
+
from scorb_api.models.endpoints.entidade_de_cenario.grupo_centro_custo import GrupoCentroCusto
|
|
24
|
+
from scorb_api.models.endpoints.entidade_de_cenario.grupo_empregado import GrupoEmpregado
|
|
25
|
+
from scorb_api.models.endpoints.entidade_de_cenario.grupo_nivel_salarial import GrupoNivelSalarial
|
|
26
|
+
from scorb_api.models.endpoints.entidade_de_cenario.grupo_verba import GrupoVerba
|
|
27
|
+
from scorb_api.models.endpoints.entidade_de_cenario.moeda import Moeda
|
|
28
|
+
from scorb_api.models.endpoints.entidade_de_cenario.nivel_salarial import NivelSalarial
|
|
29
|
+
from scorb_api.models.endpoints.entidade_de_cenario.plano import Plano
|
|
30
|
+
from scorb_api.models.endpoints.entidade_de_cenario.plano_contas import PlanoContas
|
|
31
|
+
from scorb_api.models.endpoints.entidade_de_cenario.posicao import Posicao
|
|
32
|
+
from scorb_api.models.endpoints.entidade_de_cenario.reajuste_alcance import ReajusteAlcance
|
|
33
|
+
from scorb_api.models.endpoints.entidade_de_cenario.reajuste_alcance_motivo import ReajusteAlcanceMotivo
|
|
34
|
+
from scorb_api.models.endpoints.entidade_de_cenario.report_calculated_field import ReportCalculatedField
|
|
35
|
+
from scorb_api.models.endpoints.entidade_de_cenario.verba import Verba
|
|
36
|
+
from scorb_api.models.endpoints.entidade_de_cenario.verba_categoria import VerbaCategoria
|
|
37
|
+
from scorb_api.models.endpoints.entidade_de_cenario.verba_centro_custo_depara import VerbaCentroCustoDepara
|
|
38
|
+
from scorb_api.models.endpoints.entidade_de_cenario.verba_conta_contabil_alcance import VerbaContaContabilAlcance
|
|
39
|
+
from scorb_api.models.endpoints.entidade_de_cenario.verba_reajuste_conta_contabil import VerbaReajusteContaContabil
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from scorb_api.models.endpoint import Endpoint
|
|
2
|
+
import asyncio
|
|
3
|
+
|
|
4
|
+
class AlcanceExcecao(Endpoint):
|
|
5
|
+
def __init__(self, header_auth, cenario_code) -> None:
|
|
6
|
+
super().__init__(header_auth=header_auth)
|
|
7
|
+
self.base_url = f"/api/SCORC/crud/cenario/{cenario_code}/AlcanceExcecao"
|
|
8
|
+
|
|
9
|
+
def read(self):
|
|
10
|
+
return asyncio.run(self.http_request.request(f"{self.base_url}/read", "post", headers=self.header_auth))
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from scorb_api.models.endpoint import Endpoint
|
|
2
|
+
import asyncio
|
|
3
|
+
|
|
4
|
+
class CalculoAlcance(Endpoint):
|
|
5
|
+
def __init__(self, header_auth, cenario_code) -> None:
|
|
6
|
+
super().__init__(header_auth=header_auth)
|
|
7
|
+
self.base_url = f"/api/SCORC/crud/cenario/{cenario_code}/CalculoAlcance"
|
|
8
|
+
|
|
9
|
+
def read(self):
|
|
10
|
+
return asyncio.run(self.http_request.request(f"{self.base_url}/read", "post", headers=self.header_auth))
|
scorb_api-0.1.0/scorb_api/models/endpoints/entidade_de_cenario/calculo_alcance_verba_dependencia.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from scorb_api.models.endpoint import Endpoint
|
|
2
|
+
import asyncio
|
|
3
|
+
|
|
4
|
+
class CalculoAlcanceVerbaDependencia(Endpoint):
|
|
5
|
+
def __init__(self, header_auth, cenario_code) -> None:
|
|
6
|
+
super().__init__(header_auth=header_auth)
|
|
7
|
+
self.base_url = f"/api/SCORC/crud/cenario/{cenario_code}/CalculoAlcanceVerbaDependencia"
|
|
8
|
+
|
|
9
|
+
def read(self):
|
|
10
|
+
return asyncio.run(self.http_request.request(f"{self.base_url}/read", "post", headers=self.header_auth))
|