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 comoOK,LOW,HIGHouN/A.MTChartService.search_parts(term): consulta o catalogo local de pecas por nome ou PN.clean_identifier(value): remove prefixos comuns comoPN:,P/N:,LOTE:eBATCH:.
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89fbc4b2f83fa594580a8437e9543ef1ef152e8fcebbb5a5759e2e755e61818
|
|
| MD5 |
3a65ce40780d0ac3df83c5a329b2ddd2
|
|
| BLAKE2b-256 |
ac039af8ec4fecb935b2f7bc432bf29688b320a9674681b8a1065de75710d5ed
|
Provenance
The following attestation bundles were made for mtchart_sdk-0.1.0.tar.gz:
Publisher:
release.yml on Romero-Softwares/mtchart_sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mtchart_sdk-0.1.0.tar.gz -
Subject digest:
c89fbc4b2f83fa594580a8437e9543ef1ef152e8fcebbb5a5759e2e755e61818 - Sigstore transparency entry: 2009625899
- Sigstore integration time:
-
Permalink:
Romero-Softwares/mtchart_sdk@8c095d9c11172a67f691910c89d0eed38f31b0d0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Romero-Softwares
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8c095d9c11172a67f691910c89d0eed38f31b0d0 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
477b6647047fafdc36b8c1c0da56e0c0e44215be382cab4b940f2357d015ef06
|
|
| MD5 |
9fa5f1030a3add744911529ee1985bff
|
|
| BLAKE2b-256 |
c629ca95da4c97af25b3727b1883f03372acdb869aad600ad3542a3bde1b030d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mtchart_sdk-0.1.0-py3-none-any.whl -
Subject digest:
477b6647047fafdc36b8c1c0da56e0c0e44215be382cab4b940f2357d015ef06 - Sigstore transparency entry: 2009626026
- Sigstore integration time:
-
Permalink:
Romero-Softwares/mtchart_sdk@8c095d9c11172a67f691910c89d0eed38f31b0d0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Romero-Softwares
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8c095d9c11172a67f691910c89d0eed38f31b0d0 -
Trigger Event:
push
-
Statement type: