libretificacaotjcore 0.1.35__tar.gz → 0.1.37__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.
Potentially problematic release.
This version of libretificacaotjcore might be problematic. Click here for more details.
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/PKG-INFO +1 -1
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/rabbitmq_consumer.py +2 -2
- libretificacaotjcore-0.1.37/libretificacaotjcore/services/request_servico_api.py +20 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/PKG-INFO +1 -1
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/pyproject.toml +1 -1
- libretificacaotjcore-0.1.35/libretificacaotjcore/services/request_servico_api.py +0 -16
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/README.md +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/__init__.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/database/__init__.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/database/arquivo_repository.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/database/certificado_repository.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/database/config_db.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/database/protocolo_repository.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/dtos/__init__.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/dtos/arquivo_dto.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/dtos/solicitacao_dto.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/enums/__init__.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/enums/e_eventos.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/enums/e_fase_retificacao.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/__init__.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/crypto_pass_service.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/file_service.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/rabbitmq_publisher.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/services/s3_service.py +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/SOURCES.txt +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/dependency_links.txt +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/requires.txt +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/top_level.txt +0 -0
- {libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libretificacaotjcore
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.37
|
|
4
4
|
Summary: Biblioteca para centralizar conexao com filas no rabbit e banco de dados no mongodb para os servicos de retificacao da TJ
|
|
5
5
|
Author-email: Jhonatan Azevedo <dev.azevedo@outlook.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/seu-usuario/libretificacaotjcore
|
|
@@ -26,8 +26,8 @@ class RabbitMQConsumer:
|
|
|
26
26
|
host=self.host,
|
|
27
27
|
credentials=credentials,
|
|
28
28
|
virtual_host=self.vhost,
|
|
29
|
-
heartbeat=
|
|
30
|
-
blocked_connection_timeout=
|
|
29
|
+
heartbeat=600,
|
|
30
|
+
blocked_connection_timeout=1200,
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
self.connection = pika.BlockingConnection(parameters)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import httpx
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RequestServicoApi:
|
|
5
|
+
def __init__(self, url, token):
|
|
6
|
+
self.url = url
|
|
7
|
+
self.token = token
|
|
8
|
+
self.client = httpx.AsyncClient(timeout=120, verify=False)
|
|
9
|
+
|
|
10
|
+
async def handler(self, *, mensagem_atualizacao: dict):
|
|
11
|
+
print(self.token)
|
|
12
|
+
response = await self.client.post(self.url, json=mensagem_atualizacao)
|
|
13
|
+
|
|
14
|
+
if response.status_code != 200:
|
|
15
|
+
raise Exception(f"Erro ao fazer request ao servico de API: {response.status_code}")
|
|
16
|
+
|
|
17
|
+
await self.close()
|
|
18
|
+
|
|
19
|
+
async def close(self):
|
|
20
|
+
await self.client.aclose()
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libretificacaotjcore
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.37
|
|
4
4
|
Summary: Biblioteca para centralizar conexao com filas no rabbit e banco de dados no mongodb para os servicos de retificacao da TJ
|
|
5
5
|
Author-email: Jhonatan Azevedo <dev.azevedo@outlook.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/seu-usuario/libretificacaotjcore
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import httpx
|
|
2
|
-
|
|
3
|
-
class RequestServicoApi:
|
|
4
|
-
def __init__(self, url, token):
|
|
5
|
-
self.url = url
|
|
6
|
-
self.token = token
|
|
7
|
-
|
|
8
|
-
async def handler(self, *, mensagem_atualizacao: dict):
|
|
9
|
-
async with httpx.AsyncClient(timeout=120, verify=False) as client:
|
|
10
|
-
print(self.token)
|
|
11
|
-
response = await client.post(self.url, json=mensagem_atualizacao)
|
|
12
|
-
|
|
13
|
-
if response.status_code != 200:
|
|
14
|
-
raise Exception(f"Erro ao fazer request ao servico de API: {response.status_code}")
|
|
15
|
-
|
|
16
|
-
return
|
|
File without changes
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/dtos/__init__.py
RENAMED
|
File without changes
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/dtos/arquivo_dto.py
RENAMED
|
File without changes
|
|
File without changes
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/enums/__init__.py
RENAMED
|
File without changes
|
{libretificacaotjcore-0.1.35 → libretificacaotjcore-0.1.37}/libretificacaotjcore/enums/e_eventos.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
|
|
File without changes
|
|
File without changes
|