libretificacaotjcore 0.1.28__tar.gz → 0.1.30__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.28 → libretificacaotjcore-0.1.30}/PKG-INFO +2 -1
- libretificacaotjcore-0.1.30/libretificacaotjcore/enums/e_fase_retificacao.py +25 -0
- libretificacaotjcore-0.1.30/libretificacaotjcore/services/request_servico_api.py +15 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore.egg-info/PKG-INFO +2 -1
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore.egg-info/SOURCES.txt +2 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore.egg-info/requires.txt +1 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/pyproject.toml +13 -5
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/README.md +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/__init__.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/database/__init__.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/database/arquivo_repository.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/database/certificado_repository.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/database/config_db.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/database/protocolo_repository.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/dtos/__init__.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/dtos/arquivo_dto.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/dtos/solicitacao_dto.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/enums/__init__.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/enums/e_eventos.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/__init__.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/crypto_pass_service.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/file_service.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/rabbitmq_consumer.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/rabbitmq_publisher.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/services/s3_service.py +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore.egg-info/dependency_links.txt +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore.egg-info/top_level.txt +0 -0
- {libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/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.30
|
|
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
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EFaseRetificacao(Enum):
|
|
5
|
+
NaoIniciado = 0
|
|
6
|
+
SolicitacaoXml = 1
|
|
7
|
+
AguardandoXml = 2
|
|
8
|
+
DownloadXml = 3
|
|
9
|
+
ExtraindoDadosDoXml = 4
|
|
10
|
+
AguardandoRubrica = 5
|
|
11
|
+
AberturaDeCompetencia = 6
|
|
12
|
+
ConsultandoESocialAberturaCompetencia = 7
|
|
13
|
+
InclusaoDasRubricas = 8
|
|
14
|
+
ConsultandoESocialInclusaoRubricas = 9
|
|
15
|
+
ExclusaoDePagamentos = 10
|
|
16
|
+
ConsultandoESocialExclusaoPagamentos = 11
|
|
17
|
+
RetificacaoDaRemuneracao = 12
|
|
18
|
+
ConsultandoESocialRetificacaoRemuneracao = 13
|
|
19
|
+
InclusaoDosPagamentos = 14
|
|
20
|
+
ConsultandoESocialInclusaoPagamentos = 15
|
|
21
|
+
Desligamento = 16
|
|
22
|
+
ConsultandoESocialDesligamento = 17
|
|
23
|
+
FechamentoDeCompetencia = 18
|
|
24
|
+
ConsultandoESocialFechamentoCompetencia = 19
|
|
25
|
+
Finalizado = 20
|
|
@@ -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()
|
{libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/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.30
|
|
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
|
|
@@ -16,9 +16,11 @@ libretificacaotjcore/dtos/arquivo_dto.py
|
|
|
16
16
|
libretificacaotjcore/dtos/solicitacao_dto.py
|
|
17
17
|
libretificacaotjcore/enums/__init__.py
|
|
18
18
|
libretificacaotjcore/enums/e_eventos.py
|
|
19
|
+
libretificacaotjcore/enums/e_fase_retificacao.py
|
|
19
20
|
libretificacaotjcore/services/__init__.py
|
|
20
21
|
libretificacaotjcore/services/crypto_pass_service.py
|
|
21
22
|
libretificacaotjcore/services/file_service.py
|
|
22
23
|
libretificacaotjcore/services/rabbitmq_consumer.py
|
|
23
24
|
libretificacaotjcore/services/rabbitmq_publisher.py
|
|
25
|
+
libretificacaotjcore/services/request_servico_api.py
|
|
24
26
|
libretificacaotjcore/services/s3_service.py
|
|
@@ -3,15 +3,22 @@ build-backend = "setuptools.build_meta"
|
|
|
3
3
|
requires = ["setuptools>=61.0", "wheel"]
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
|
-
authors = [
|
|
7
|
-
{name = "Jhonatan Azevedo", email = "dev.azevedo@outlook.com"},
|
|
8
|
-
]
|
|
6
|
+
authors = [{ name = "Jhonatan Azevedo", email = "dev.azevedo@outlook.com" }]
|
|
9
7
|
description = "Biblioteca para centralizar conexao com filas no rabbit e banco de dados no mongodb para os servicos de retificacao da TJ"
|
|
10
|
-
keywords = [
|
|
8
|
+
keywords = [
|
|
9
|
+
"tj",
|
|
10
|
+
"tributo justo",
|
|
11
|
+
"retificação",
|
|
12
|
+
"automação",
|
|
13
|
+
"pydantic",
|
|
14
|
+
"rabbitmq",
|
|
15
|
+
"boto3",
|
|
16
|
+
"motor",
|
|
17
|
+
]
|
|
11
18
|
name = "libretificacaotjcore"
|
|
12
19
|
readme = "README.md"
|
|
13
20
|
requires-python = ">=3.12"
|
|
14
|
-
version = "0.1.
|
|
21
|
+
version = "0.1.30"
|
|
15
22
|
|
|
16
23
|
classifiers = [
|
|
17
24
|
"Development Status :: 3 - Alpha",
|
|
@@ -33,6 +40,7 @@ dependencies = [
|
|
|
33
40
|
"aiofiles>=24.1.0",
|
|
34
41
|
"boto3>=1.39.16",
|
|
35
42
|
"cryptography>=45.0.6",
|
|
43
|
+
"httpx>=0.28.1",
|
|
36
44
|
"motor>=3.7.1",
|
|
37
45
|
"pika>=1.3.2",
|
|
38
46
|
"py7zr>=1.0.0",
|
|
File without changes
|
{libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/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.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/dtos/__init__.py
RENAMED
|
File without changes
|
{libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/dtos/arquivo_dto.py
RENAMED
|
File without changes
|
|
File without changes
|
{libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/libretificacaotjcore/enums/__init__.py
RENAMED
|
File without changes
|
{libretificacaotjcore-0.1.28 → libretificacaotjcore-0.1.30}/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
|