Modelos de domínio do projeto Lacrei.
Project description
Lacrei Models
Pacote centralizado para os modelos de domínio (models.py) do ecossistema Lacrei.
🎯 Objetivo
Centralizar todos os modelos do Django utilizados pelas aplicações Lacrei, permitindo:
- Modularidade: Desacoplar a camada de dados da lógica de aplicação.
- Reuso: Serviços diferentes podem consumir os mesmos modelos de forma consistente.
- Governança e Consistência: Ponto único de verdade para estrutura de dados.
É uma dependência interna, destinada a ser usada por aplicações como lacrei-api.
⚙️ Uso
Adicione como dependência usando Poetry:
poetry add lacrei-models
Importe os modelos no código:
from lacrei_models.address.models import Address
from lacrei_models.lacreiid.models import User
from lacrei_models.appointments.models import Appointment
from lacrei_models.lacreisaude.models import Professional
from lacrei_models.notification.models import Notification
from lacrei_models.payment.models import Payment
from lacrei_models.sync.models import GoogleAccount
🛠️ Desenvolvimento
Clone o repositório e instale as dependências:
git clone git@github.com:Lacrei/lacrei-models.git
cd lacrei-models
make install
poetry shell
Comandos principais:
make test # Rodar testes
make format # Formatar código
make lint # Verificar estilo e erros
make quality # Rodar todas as verificações
🚀 Publicação
Atualize a versão no pyproject.toml, commit e tagueie:
git add pyproject.toml
git commit -m "chore: bump version to 0.2.6"
git tag v0.2.6
git push origin v0.2.6
make publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lacrei_models-2.2.0.tar.gz.
File metadata
- Download URL: lacrei_models-2.2.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9303176cb1c67567923782231c144b18eef7b511992c3604909cd9633d1d52b9
|
|
| MD5 |
dab38e513f9afa1027e14dbc0ab94f6d
|
|
| BLAKE2b-256 |
9eff1aadedfacdc58ca00350e09a6224b125c156f4a683f29818fcce2c6cf3c5
|
Provenance
The following attestation bundles were made for lacrei_models-2.2.0.tar.gz:
Publisher:
publish.yml on Lacrei/lacrei-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lacrei_models-2.2.0.tar.gz -
Subject digest:
9303176cb1c67567923782231c144b18eef7b511992c3604909cd9633d1d52b9 - Sigstore transparency entry: 701723071
- Sigstore integration time:
-
Permalink:
Lacrei/lacrei-models@a9fd6e49b1d54153c706c193df65e7fef62abe45 -
Branch / Tag:
refs/heads/sprint-41/higienizacao_inicial_do_repositorio_lacrei-models - Owner: https://github.com/Lacrei
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9fd6e49b1d54153c706c193df65e7fef62abe45 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file lacrei_models-2.2.0-py3-none-any.whl.
File metadata
- Download URL: lacrei_models-2.2.0-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ca1bfaeb7514c629954f71e23c51b67aa007173a4f50941f5f7b157bc69313
|
|
| MD5 |
784f5bc2322064a24ad4ae8d58a07d7b
|
|
| BLAKE2b-256 |
8700ded2eee0783ee86aaf8f9e9a67e51ccacd7962228b42422dc2e3270a3377
|
Provenance
The following attestation bundles were made for lacrei_models-2.2.0-py3-none-any.whl:
Publisher:
publish.yml on Lacrei/lacrei-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lacrei_models-2.2.0-py3-none-any.whl -
Subject digest:
36ca1bfaeb7514c629954f71e23c51b67aa007173a4f50941f5f7b157bc69313 - Sigstore transparency entry: 701723072
- Sigstore integration time:
-
Permalink:
Lacrei/lacrei-models@a9fd6e49b1d54153c706c193df65e7fef62abe45 -
Branch / Tag:
refs/heads/sprint-41/higienizacao_inicial_do_repositorio_lacrei-models - Owner: https://github.com/Lacrei
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9fd6e49b1d54153c706c193df65e7fef62abe45 -
Trigger Event:
workflow_dispatch
-
Statement type: