API — Application Interface
The API module provides a standardized interface for exposing the
functionality of SciNumTools to external applications and systems. Its goal
is to provide a consistent way to work with PUEL and DIPL definitions
regardless of the environment in which they are used, separating the
scientific data model from the particular interface used to access it.
The API is intended to support different interfaces such as command-line applications, console-based tools, REST services, and other integrations. This allows the same PUEL quantities and DIPL parameter definitions to be used consistently across different applications and services, providing a common interface for defining, querying, evaluating, and exchanging scientific data.
The snt::api C++ module provides command objects and typed facades for
these workflows. Most command objects return formatted text suitable for
interfaces such as the CLI. The MAT commands return typed records so the CLI
can present them without instantiating or duplicating MAT calculations. The
same MAT commands and records are available through scinumtools3.api.mat
and the REST MAT endpoints.
Concepts and model — command objects, result forms, build requirements, and the boundary above the native modules.
Getting started — configure and execute a first application command.
Workflows — PUQ conversion, typed MAT evaluation, and DIP parsing tasks.
PUQ commands — evaluate, convert, and inspect PUEL quantities and list definitions.
MAT commands — evaluate elements, substances, and materials through the application facade.
DIP commands — parse DIPL, describe values, preview overrides, load and save DIPH5, and generate outputs.
Limits and compatibility — result, persistence, build, and interface boundaries.
Interfaces
The C++ command objects above are the canonical application facade. The same operations are exposed to applications through these interface guides:
Python application API — generated
scinumtools3.apideclarations for PUQ, MAT, and DIP commands.Command line — the
sntcommand groups that consume the application facade.REST service — HTTP endpoints backed by the same application operations.
MCP server — tool-oriented access to PUQ, MAT, and DIP operations.