Skip to main content

SDK para criar sistemas de monitoramento termico, rastreabilidade e relatorios derivados do MTChart Pro.

Project description

MTChart SDK

SDK inicial para desenvolvedores criarem sistemas semelhantes ao MTChart Pro usando classes e metodos reutilizaveis.

Esta primeira versao fica separada do aplicativo desktop e entrega um nucleo limpo para:

  • cadastrar processos termicos;
  • validar leituras de temperatura;
  • calcular previsao de saida;
  • registrar catalogo local de pecas e PN;
  • montar dados de rastreabilidade sem depender da interface Flet.

Instalacao

python -m pip install mtchart-sdk

Exemplo rapido

from datetime import datetime

from mtchart_sdk import MTChartService, PartItem, PenConfig, ProcessInput

service = MTChartService()

process = service.create_process(
    ProcessInput(
        report_number="CH-0001",
        project="OS-123",
        process_name="Alivio de fragilizacao",
        oven="Forno 01",
        relief_hours=3,
        pen=PenConfig(id="1", name="Pena 1", stabilization_target=189, low_limit=175.9),
        items=[
            PartItem(name="Suporte", pn="PN-001", sn="SN-001", qty=1),
        ],
        started_at=datetime(2026, 6, 28, 8, 0, 0),
    )
)

reading = service.evaluate_reading(process, value=188.7)

print(process.report_number)
print(reading.status)
print(reading.can_start_process)

Estrutura

  • mtchart_sdk.models: modelos de dados do processo.
  • mtchart_sdk.rules: regras puras de temperatura e tempo.
  • mtchart_sdk.storage: catalogo SQLite local de pecas.
  • mtchart_sdk.service: fachada principal para uso por outros sistemas.
  • mtchart_sdk.cli: demonstracao de linha de comando para validar instalacao.
  • examples/basic_process.py: exemplo minimo executavel.

API principal

  • MTChartService.create_process(data): normaliza pecas, calcula quantidade total e previsao de saida.
  • MTChartService.evaluate_reading(process, value): classifica leitura como OK, LOW, HIGH ou N/A.
  • MTChartService.search_parts(term): consulta o catalogo local de pecas por nome ou PN.
  • clean_identifier(value): remove prefixos comuns como PN:, P/N:, LOTE: e BATCH:.

CLI de demonstracao

Depois de instalar localmente, rode:

mtchart-sdk-demo --value 188.7

Ou sem instalar como script:

python -m mtchart_sdk.cli --catalog-db .tmp_demo.db --value 188.7

O comando cria um processo ficticio, avalia a leitura e retorna um JSON com status, previsao de saida e resultados do catalogo local.

Validacao local

Para validar uma copia local do SDK durante desenvolvimento:

python tools/validate_package.py

O validador confere metadados, compila os modulos, roda testes e executa o exemplo/CLI de demonstracao.

Status

Versao inicial. A API esta pronta para instalacao, testes locais e evolucao incremental.

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

mtchart_sdk-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

mtchart_sdk-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file mtchart_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: mtchart_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mtchart_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c89fbc4b2f83fa594580a8437e9543ef1ef152e8fcebbb5a5759e2e755e61818
MD5 3a65ce40780d0ac3df83c5a329b2ddd2
BLAKE2b-256 ac039af8ec4fecb935b2f7bc432bf29688b320a9674681b8a1065de75710d5ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtchart_sdk-0.1.0.tar.gz:

Publisher: release.yml on Romero-Softwares/mtchart_sdk

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

File details

Details for the file mtchart_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mtchart_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mtchart_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 477b6647047fafdc36b8c1c0da56e0c0e44215be382cab4b940f2357d015ef06
MD5 9fa5f1030a3add744911529ee1985bff
BLAKE2b-256 c629ca95da4c97af25b3727b1883f03372acdb869aad600ad3542a3bde1b030d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtchart_sdk-0.1.0-py3-none-any.whl:

Publisher: release.yml on Romero-Softwares/mtchart_sdk

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