Python DSL reference
pip install -e . | sa-dsl check | sa-dsl build | sa-dsl importInstallation and commands
Install the package and use its CLI for validation, YAML output, and reverse generation.
When to use
Use these commands in local development and CI before requesting target-language code.
Behavior
checkloads the Python entry point and prints validation diagnostics without writing YAML.buildvalidates and emits YAML to stdout or a selected file.importconverts existing Service Architect YAML into a modular typed Python package.
CLI commands properties
Commands installed by the sa-python-dsl package.
PropertyTypeDescription
sa-dsl check <source>validationValidate a Python graph without writing YAML.
sa-dsl build <source>serializationWrite YAML to stdout.
sa-dsl build <source> -o <file>serializationWrite YAML to a file.
sa-dsl import <yaml> -o <package>reverse generationCreate an importable Python project from YAML.
Shell
python -m venv .venv
. .venv/bin/activate
pip install -e .
sa-dsl check examples/processorder/main.py
sa-dsl build examples/processorder/main.py -o architecture.yaml