Skip to main content

Modelos de domínio do projeto Lacrei.

Project description

Lacrei Models

Pacote centralizado para os modelos de domínio (models.py) do ecossistema Lacrei.

Python Version


🎯 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lacrei_models-2.4.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lacrei_models-2.4.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file lacrei_models-2.4.0.tar.gz.

File metadata

  • Download URL: lacrei_models-2.4.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lacrei_models-2.4.0.tar.gz
Algorithm Hash digest
SHA256 11a8cfab550079e1c2e1dba8aea64b04464daebcd7b094d4ae459165e74695f7
MD5 d36f4275fcff9b4c4fd2b097a841f58b
BLAKE2b-256 f993e4e1b4224d7c10edb3c972c30091baf5abd3d13f43710b28627b6ec7f320

See more details on using hashes here.

Provenance

The following attestation bundles were made for lacrei_models-2.4.0.tar.gz:

Publisher: publish.yml on Lacrei/lacrei-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lacrei_models-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: lacrei_models-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lacrei_models-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6968b9aff90c9129f10c6eaa3f6f8cadafbee424c9de5c5fa23f1a0dc849c300
MD5 ed7f16393be31ea23f4c5bf9570499a7
BLAKE2b-256 f96aa3054617c06a72ad26c67b8d8a58adcb3443c156edc493c6983aad2cd0ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for lacrei_models-2.4.0-py3-none-any.whl:

Publisher: publish.yml on Lacrei/lacrei-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page