Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

aas-smt-verification

Continuous integration

Run a battery of checks on an AAS Submodel Template.

The submodel template is given either as an AAS environment in JSON (.json) or XML (.xml), or as an AAS package (.aasx). In case of a package, all the AAS specs in it are read with aas-package3 and merged into a single environment.

The versions 3.0, 3.1 and 3.2 of the AAS meta-model are supported, selected with --aas_version (default: 3.1). XML files are checked to be in the namespace of the given version, while JSON files do not indicate the version, so they are simply assumed to be of the given version.

The checks are organized in groups:

lint

The verification of the AAS meta-model constraints and the rule-based checks of aas-smt-lint. Each rule is reported as a separate check (e.g., lint.cardinality).

with-llms

The semantic checks of aas-smt-verification-with-llms, where a Large Language Model judges whether the descriptions, concept descriptions, units, value types, display names and ID-shorts are consistent. Each prompt is reported as a separate check (e.g., with-llms.concept_description_to_unit). These checks need an LLM backend (--llm), either OpenAI or a local Ollama. The findings are only suggestions and need to be judged by a human.

All the groups run by default. Use --select and --skip to choose the groups.

The report is written to STDOUT, unless you specify --report_path. It is human-readable by default; use --report_format json to process it further.

The program exits with code 0 if all the checks passed (or were not applicable), and 1 otherwise.

Installation

pip3 install aas-smt-verification

Usage

Run only the rule-based checks:

aas-smt-verification \
    --path IDTA_02006_Template_DigitalNameplate.aasx \
    --skip with-llms

Run all the checks with OpenAI and write a JSON report to a file:

aas-smt-verification \
    --path IDTA_02006_Template_DigitalNameplate.json \
    --llm openai \
    --openai_api_key_file openai-key.txt \
    --report_format json \
    --report_path report.json

Run only the checks with a local Ollama model:

aas-smt-verification \
    --path IDTA_02006_Template_DigitalNameplate.xml \
    --select with-llms \
    --llm ollama \
    --ollama_model llama3.1

--help

usage: aas-smt-verification [-h] --path PATH [--aas_version {3.0,3.1,3.2}]
                            [--report_path REPORT_PATH]
                            [--report_format {text,json}] [--select  [...]]
                            [--skip  [...]] [--llm {openai,ollama}]
                            [--openai_api_key_file OPENAI_API_KEY_FILE]
                            [--openai_model OPENAI_MODEL]
                            [--ollama_model OLLAMA_MODEL]
                            [--ollama_host OLLAMA_HOST]
                            [--ollama_timeout OLLAMA_TIMEOUT] [--version]

Run a battery of checks on an AAS Submodel Template.

options:
  -h, --help            show this help message and exit
  --path PATH           Path to the submodel template as an AAS environment in
                        JSON (.json), XML (.xml) or as an AAS package (.aasx)
  --aas_version {3.0,3.1,3.2}
                        Version of the AAS meta-model of the submodel template
                        (default: 3.1); XML files are checked to be in the
                        namespace of this version, while JSON files do not
                        indicate the version, so they are simply assumed to be
                        of this version
  --report_path REPORT_PATH
                        If set, write the report to this file instead of
                        STDOUT
  --report_format {text,json}
                        Format of the report
  --select  [ ...]      If set, run only the selected groups of checks, given
                        as a space-separated list of: lint with-llms
  --skip  [ ...]        If set, skip the given groups of checks, given as a
                        space-separated list of: lint with-llms
  --llm {openai,ollama}
                        LLM backend for the checks with LLMs; required unless
                        you skip with-llms
  --openai_api_key_file OPENAI_API_KEY_FILE
                        Path to the file containing the OpenAI API key; if not
                        set, the environment variable OPENAI_API_KEY is used
  --openai_model OPENAI_MODEL
                        OpenAI model name (default: gpt-5-2025-08-07)
  --ollama_model OLLAMA_MODEL
                        Ollama model name (default: llama3.1)
  --ollama_host OLLAMA_HOST
                        Ollama host URL; if not set, the environment variable
                        OLLAMA_HOST is used, or http://localhost:11434 if the
                        variable is not set
  --ollama_timeout OLLAMA_TIMEOUT
                        HTTP timeout in seconds for Ollama (default: 60)
  --version             Show the current version and exit

Contributing

See CONTRIBUTING.rst.

Metadata

Release files for aas-smt-verification 1.0.0rc1

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

Source distribution (sdist)

Source distribution for aas-smt-verification 1.0.0rc1
File Size Uploaded Provenance Actions
aas_smt_verification-1.0.0rc1.tar.gz 14.4 kB Without provenance Details for aas_smt_verification-1.0.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aas-smt-verification 1.0.0rc1
File Interpreter ABI Platform Actions
aas_smt_verification-1.0.0rc1-py3-none-any.whl Python 3 none any Details for aas_smt_verification-1.0.0rc1-py3-none-any.whl

Total release size: 30.2 kB

Release files / aas_smt_verification-1.0.0rc1.tar.gz

Download URL aas_smt_verification-1.0.0rc1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1181b18225420bd2305ad848d4045ce7d4aa0ae58fbd7f42a0c3f89d06b4bd53
BLAKE2b-256 checksum
How to use checksums
c4350a831cabd3cb58bfcdaedafc9baaf1a582af4493a4a146f2e357c1f9010f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / aas_smt_verification-1.0.0rc1-py3-none-any.whl

Download URL aas_smt_verification-1.0.0rc1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f17303c3b50be9b69891c87575c0d4015864cd1071a8e643b0d5e26bfe05604
BLAKE2b-256 checksum
How to use checksums
48359d3145f7e320c40a6bd36e98d03baa3ed0b5b738543327d1f34633aca455
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for aas-smt-verification 1.0.0rc1

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.

Release history Release notifications | RSS feed

This release
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