Skip to main content

NormaCare SDK

Le SDK officiel pour développer, tester et publier des composants d'intégration médicale, utilisables dans NormaCare Studio et exécutés par NormaCare Engine, et distribuables sur le NormaCare Store.

Installation

pip install normacare-sdk

Développement local (depuis ce dossier) :

pip install -e .

Démarrage rapide (5 minutes)

normacare-sdk new mon_composant_hl7 --template hl7
cd mon_composant_hl7
normacare-sdk test .        # exécute test_mon_composant_hl7.py
normacare-sdk validate .    # vérifie le manifest .cmp
normacare-sdk build .       # produit mon_composant_hl7-1.0.0.ncpkg
normacare-sdk login         # connexion au Store
normacare-sdk publish . --price 0

Templates

Template Description
basic Composant Python minimal
hl7 Composant HL7 v2.x (extraction de segments)
database Composant avec accès base de données
javascript Composant JavaScript / Node.js
http Composant appel API REST

Écrire un composant

from normacare_sdk import NormaCareComponent, ComponentInfo, run

class Component(NormaCareComponent):
    info = ComponentInfo(type="mon_comp", label="Mon Composant", author="Moi")

    def process(self, data, vars, params):
        # self._config = options du composant (définies dans le .cmp / le Studio)
        seuil = self.get_option(self._config, "seuil", default=10)
        self.log("Traitement en cours")
        return {"result": data, "seuil": seuil}

run(Component)

À l'exécution, l'Engine injecte le contexte du flux :

Variable Contenu
_inputs sorties des nœuds parents
_vars variables globales du flux
_params paramètres du job Engine
_config options du composant (du manifest .cmp)

Tester

from normacare_sdk.testing import ComponentTester
from mon_comp import Component

t = ComponentTester(Component)
t.run(data={"raw": "MSH|..."}, config={"seuil": 5})
t.assert_success()
t.assert_output_key("result")
t.print_report()

Structure d'un composant

mon_composant/
├── mon_composant.cmp      Manifest JSON (métadonnées, options, prix)
├── mon_composant.py       Script (votre logique)
├── test_mon_composant.py  Tests locaux
└── README.md              Documentation (affichée sur le Store)

Niveaux de protection

Niveau Protection
Open source aucune
"protected": true obfuscation PyArmor (pip install normacare-sdk[protect])
Payant jeton d'achat requis (abonnement Publisher)

Support

© FDevelopment LTD

Download files

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

Source Distribution

normacare_sdk-2.0.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

normacare_sdk-2.0.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file normacare_sdk-2.0.1.tar.gz.

File metadata

  • Download URL: normacare_sdk-2.0.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for normacare_sdk-2.0.1.tar.gz
Algorithm Hash digest
SHA256 afc1b9825d9dc7f689393131efd6f9211b693880b38aa90bf9294e1ca58c836d
MD5 c952b6e00263d7d3f4249cc0a89bd33a
BLAKE2b-256 4b72017278348383d3fdbb8a1f6ea587d65722fcc63ad7b3548a27655f671f79

See more details on using hashes here.

File details

Details for the file normacare_sdk-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: normacare_sdk-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for normacare_sdk-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd447a57ee3b2ef8a25e9a6c0b024dcfb7afefee08376cc460dd7f5720c94d99
MD5 91490429f929ad733dbc9db30e35fa70
BLAKE2b-256 84d5b8e2955d42b2d8477ec64e33dd814e10b9a36245ed892c3091c51cf48301

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 files

2.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page