libretificacaotjcore 0.1.28__py3-none-any.whl → 0.1.29__py3-none-any.whl

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.

@@ -0,0 +1,15 @@
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() as client:
10
+ response = await client.post(self.url, headers={"Authorization": f"Bearer {self.token}"}, json=mensagem_atualizacao)
11
+
12
+ if response.status_code != 200:
13
+ raise Exception(f"Erro ao fazer request ao servico de API: {response.status_code}")
14
+
15
+ return response.json()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libretificacaotjcore
3
- Version: 0.1.28
3
+ Version: 0.1.29
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
@@ -25,6 +25,7 @@ Requires-Dist: aio-pika>=9.5.7
25
25
  Requires-Dist: aiofiles>=24.1.0
26
26
  Requires-Dist: boto3>=1.39.16
27
27
  Requires-Dist: cryptography>=45.0.6
28
+ Requires-Dist: httpx>=0.28.1
28
29
  Requires-Dist: motor>=3.7.1
29
30
  Requires-Dist: pika>=1.3.2
30
31
  Requires-Dist: py7zr>=1.0.0
@@ -14,8 +14,9 @@ libretificacaotjcore/services/crypto_pass_service.py,sha256=9D0vyjan6f_8AfNxGkLp
14
14
  libretificacaotjcore/services/file_service.py,sha256=14CJokBbrsryQGmL0_unH2QKZpnteEAfxf5CPFdv6cE,2075
15
15
  libretificacaotjcore/services/rabbitmq_consumer.py,sha256=XPbOvFR3HySfA1IROLPrsb4AmeHeq1Unthxt44vaqik,1760
16
16
  libretificacaotjcore/services/rabbitmq_publisher.py,sha256=xsb9LmIuZizzq5lxnEEZKMK3U952KSQ2oqlTBZi2Lt8,1787
17
+ libretificacaotjcore/services/request_servico_api.py,sha256=eHYRubk2DptKhSOw3HEunCNfiDtvDHsUyo00UW7AGOA,571
17
18
  libretificacaotjcore/services/s3_service.py,sha256=HKR_jt2H3XdV1PCzo5R5bnhmoQ3I46Yn5IqAvVPhsjs,2946
18
- libretificacaotjcore-0.1.28.dist-info/METADATA,sha256=3mqyRHsrlmQAWwPJsIJelBleid6MGyf-a6UL3crwexw,2534
19
- libretificacaotjcore-0.1.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- libretificacaotjcore-0.1.28.dist-info/top_level.txt,sha256=J9vnz_X9OUnxC-eXHiAzlc9xIrWBwZ5bgnIDQIIFY4c,21
21
- libretificacaotjcore-0.1.28.dist-info/RECORD,,
19
+ libretificacaotjcore-0.1.29.dist-info/METADATA,sha256=r4r2FNQZGW-r1OitA08JVIWPeFv_ztAqxEgL6nfnsMo,2564
20
+ libretificacaotjcore-0.1.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ libretificacaotjcore-0.1.29.dist-info/top_level.txt,sha256=J9vnz_X9OUnxC-eXHiAzlc9xIrWBwZ5bgnIDQIIFY4c,21
22
+ libretificacaotjcore-0.1.29.dist-info/RECORD,,