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)

Protection et vente

Situation Ce qui protège votre travail
Composant gratuit votre licence (champ license) et la Convention éditeur
Composant payant téléchargement réservé aux acheteurs (jeton d'achat) ; l'usage est encadré par votre licence

Le SDK ne produit pas de code obfusqué : un paquet "protected": true est refusé par normacare-sdk build (un script obfusqué ne s'exécuterait pas sur tous les Engines, et le Store en demanderait les sources). Commission du Store : 20 % (FDevelopment LTD), 80 % pour l'éditeur.

Support

© FDevelopment LTD

Metadata

Release files for normacare-sdk 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for normacare-sdk 2.0.2
File Size Uploaded Provenance Actions
normacare_sdk-2.0.2.tar.gz 20.9 kB Without provenance Details for normacare_sdk-2.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for normacare-sdk 2.0.2
File Interpreter ABI Platform Actions
normacare_sdk-2.0.2-py3-none-any.whl Python 3 none any Details for normacare_sdk-2.0.2-py3-none-any.whl

Total release size: 48.2 kB

Release files / normacare_sdk-2.0.2.tar.gz

Download URL normacare_sdk-2.0.2.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e0cf1f058eb221f136f48b3d6b0b55d01ede181b4a4f8122d702d3c830914599
BLAKE2b-256 checksum
How to use checksums
776ed5e3b3bc113392d78661e2f5123db9dc27c968a0ea4c2d0db40c7e437538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / normacare_sdk-2.0.2-py3-none-any.whl

Download URL normacare_sdk-2.0.2-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
589d10d79766a817406bf582e41258aa25f36027c1f5610d04a56e52d9b4bf8f
BLAKE2b-256 checksum
How to use checksums
704299264b9f25ec1c8b671e0af83637cc4827446706281c740a77e89274e938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for normacare-sdk 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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