libretificacaotjcore 0.1.19__py3-none-any.whl → 0.1.21__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.
- libretificacaotjcore/database/protocolo_repository.py +8 -1
- {libretificacaotjcore-0.1.19.dist-info → libretificacaotjcore-0.1.21.dist-info}/METADATA +37 -1
- {libretificacaotjcore-0.1.19.dist-info → libretificacaotjcore-0.1.21.dist-info}/RECORD +5 -5
- {libretificacaotjcore-0.1.19.dist-info → libretificacaotjcore-0.1.21.dist-info}/WHEEL +0 -0
- {libretificacaotjcore-0.1.19.dist-info → libretificacaotjcore-0.1.21.dist-info}/top_level.txt +0 -0
|
@@ -54,4 +54,11 @@ class ProtocoloRepository:
|
|
|
54
54
|
return await self.__db.protocolos.find({"solicitacaoId": solicitacaoId}).to_list(length=None)
|
|
55
55
|
except Exception as e:
|
|
56
56
|
print(f"❌ Erro ao buscar protocolo por solicitacaoId: {e}")
|
|
57
|
-
return []
|
|
57
|
+
return []
|
|
58
|
+
|
|
59
|
+
async def buscar_por_solicitacao_id_e_evento(self, solicitacaoId: int, evento: str) -> dict | None:
|
|
60
|
+
try:
|
|
61
|
+
return await self.__db.protocolos.find_one({"solicitacaoId": solicitacaoId, "evento": evento})
|
|
62
|
+
except Exception as e:
|
|
63
|
+
print(f"❌ Erro ao buscar protocolo por solicitacaoId e evento: {e}")
|
|
64
|
+
return None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libretificacaotjcore
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.21
|
|
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
|
|
@@ -28,3 +28,39 @@ Requires-Dist: motor>=3.7.1
|
|
|
28
28
|
Requires-Dist: pika>=1.3.2
|
|
29
29
|
Requires-Dist: py7zr>=1.0.0
|
|
30
30
|
Requires-Dist: pydantic>=2.11.7
|
|
31
|
+
|
|
32
|
+
# 🛠️ LIBRETIFICACAOTJCORE
|
|
33
|
+
|
|
34
|
+
## 📝 Descrição
|
|
35
|
+
|
|
36
|
+
O Objetivo desse serviço é:
|
|
37
|
+
- Centralizar conexão com filas no rabbit e consumo de mensagens
|
|
38
|
+
- Centralizar conexão banco de dados no mongodb para os serviços de retificação da TJ
|
|
39
|
+
- Centralizar todas as operações de criação, leitura e atualização de arquivos
|
|
40
|
+
- Centralizar todas as operações de criação, leitura e atualização de protocolos
|
|
41
|
+
- Disponibilizar metodos para tratativas de arquivos
|
|
42
|
+
- Disponibilizar Dtos e Enums comuns em todos os serviços de retificações
|
|
43
|
+
|
|
44
|
+
## ⚙️ Configuração
|
|
45
|
+
nessesário ter o [uv astral](https://docs.astral.sh/uv/getting-started/installation/) instalado
|
|
46
|
+
|
|
47
|
+
Com o UV instalado, execute o comando abaixo para criar o arquivo de configuração:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
uv sync
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 📺 Como publicar?
|
|
54
|
+
|
|
55
|
+
Para publicar o serviço, execute o comando abaixo:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
uv build
|
|
59
|
+
```
|
|
60
|
+
e depois
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
twine upload dist/*
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Obs: É necessário informa o token do pypi para que o comando funcione
|
|
@@ -3,7 +3,7 @@ libretificacaotjcore/database/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN
|
|
|
3
3
|
libretificacaotjcore/database/arquivo_repository.py,sha256=Wv42CWjddS8RPVR3aAOGwuFuLyGqmgq-TXOc-V0BTvE,2154
|
|
4
4
|
libretificacaotjcore/database/certificado_repository.py,sha256=LF3rV1rQmRGZVB4wPh_vmDj81Gf_env_5hqtTbxXNFM,1396
|
|
5
5
|
libretificacaotjcore/database/config_db.py,sha256=CylnnX2l7mzmxi-o7ZeIzhE7y72wHG9SJCS2fX6UsLc,1844
|
|
6
|
-
libretificacaotjcore/database/protocolo_repository.py,sha256=
|
|
6
|
+
libretificacaotjcore/database/protocolo_repository.py,sha256=hxg5PztYJ_DaosmIHuPWVvFyDi4OOx1_lkdb5NdWb-E,2615
|
|
7
7
|
libretificacaotjcore/dtos/solicitacao_dto.py,sha256=QJYzI8ii_gTgYTnFN5KFFzKqy_1BkKmbEGdqFnpLq88,2509
|
|
8
8
|
libretificacaotjcore/enums/e_eventos.py,sha256=x1LXcTLNCAAj1MuQP6jT5vu9cFkoAyGEzPAqQHj_8L8,185
|
|
9
9
|
libretificacaotjcore/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ libretificacaotjcore/services/crypto_pass_service.py,sha256=9D0vyjan6f_8AfNxGkLp
|
|
|
11
11
|
libretificacaotjcore/services/file_service.py,sha256=14CJokBbrsryQGmL0_unH2QKZpnteEAfxf5CPFdv6cE,2075
|
|
12
12
|
libretificacaotjcore/services/rabbitmq_consumer.py,sha256=a25mRHjbkgO3lkdCJ5NpJfWAGHhVkQDCRDR2t8hMNAI,1710
|
|
13
13
|
libretificacaotjcore/services/s3_service.py,sha256=HKR_jt2H3XdV1PCzo5R5bnhmoQ3I46Yn5IqAvVPhsjs,2946
|
|
14
|
-
libretificacaotjcore-0.1.
|
|
15
|
-
libretificacaotjcore-0.1.
|
|
16
|
-
libretificacaotjcore-0.1.
|
|
17
|
-
libretificacaotjcore-0.1.
|
|
14
|
+
libretificacaotjcore-0.1.21.dist-info/METADATA,sha256=_F2zFES4DCjWLHYmaTNWC_9kHJ0Sljr1o_yF7zBX-dQ,2502
|
|
15
|
+
libretificacaotjcore-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
libretificacaotjcore-0.1.21.dist-info/top_level.txt,sha256=J9vnz_X9OUnxC-eXHiAzlc9xIrWBwZ5bgnIDQIIFY4c,21
|
|
17
|
+
libretificacaotjcore-0.1.21.dist-info/RECORD,,
|
|
File without changes
|
{libretificacaotjcore-0.1.19.dist-info → libretificacaotjcore-0.1.21.dist-info}/top_level.txt
RENAMED
|
File without changes
|