windstorm
SysML 2.0 Analysis Toolset — model-driven templating for any text-based file.
Overview
windstorm reads a SysML v2 analysis model — either from a live
SysMLv2 API
or from local .sysml files — and turns the model's parameter values
into variables you can use inside any text-based template.
It extends Jinja2 with a custom
windstorm(...) function, so anything Jinja can render (files, code,
config, Excel workbooks) can be driven from your SysML model.
Installation
pip install sysml-windstorm
Requires Python 3.9+.
Quick start
Point windstorm at a model and render a template:
# Live API mode: pull parameters from a SysMLv2 API
windstorm -a http://your_api_address:9000 -p project_uuid element_name
# Local-file mode: use a directory of .sysml files (or exported JSON) instead
windstorm --source ./models element_name
Inside any text file, reference model values with Jinja:
{{ windstorm('myVar') }}
Run windstorm with that file's directory as the input:
windstorm --source ./models --in_directory ./templates --out_directory ./output element_name
Modes
1. Live SysMLv2 API (default)
When pointed at an appropriate SysMLv2 API, windstorm pulls all parameter values for the requested analysis element and makes them available to the Jinja templates.
windstorm -a http://your_api_address:9000 -p project_uuid element_name
2. Local files / offline (--source)
Since v0.6.0, windstorm can read a model entirely from local files — no API address and no network required:
windstorm --source ./models element_name
--source DIR accepts either:
- Raw
.sysmlfiles — windstorm runs the windtrader-javabatch-exportCLI to produce the export JSON, then loads it. Set the jar location with theWINDTRADER_JARenvironment variable. - Already-exported JSON (
*.export.json) — loaded directly, no Java needed. This is the fastest path and is fully offline.
Both paths build an in-memory element store (the same API-shaped graph windstorm uses in live mode), so templating behaves identically.
Note: the
--sourcemode is deterministic — the same files always produce the same rendered output, which makes it ideal for CI, tests, and reproducible builds.
Templating
Any text-based file (.json, .py, .txt, .m, ...) can be templated
with Jinja. Versions after 0.4.0 also support Excel files, even though
they are not pure text.
windstorm supports all Jinja features (for loops, if statements, filters,
etc.) and adds the custom windstorm() function to resolve a model value
by tool-variable name.
Example template (template.txt):
{{ windstorm('deltaT') }}
Example with a loop:
{% for w in windstorm('weights') %}{{ w }}{% if not loop.last %},{% endif %}{% endfor %}
Run windstorm with --in_directory (template folder) and --out_directory
(rendered output):
windstorm -a http://your_api_address:9000 -p project_uuid \
--in_directory ./templates --out_directory ./output \
element_name
CLI reference
windstorm [element_name] [options]
Options:
-a, --api URL SysMLv2 API address (default: http://sysml2-dev.intercax.com:9000)
-p, --project_id UUID Specific project UUID (default: latest project)
--source DIR Read from local .sysml / .export.json files instead of an API
-t, --element_type TYPE Analysis element type (default: AnalysisCaseDefinition)
--in_directory DIR Template input directory (default: .)
--out_directory DIR Rendered output directory (default: .)
--insecure Disable TLS verification
--debug Enable debug logging
--force_render_error_continue Keep rendering sibling files after an error
Development
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pytest tests
The test suite uses committed mocks (API-shaped JSON under
tests/mocks/) — no live API or Jupyter kernel required. To regenerate
the mocks from the .sysml fixtures, run:
python ./tests/mocks/make_mocks.py
(Requires a SysML Jupyter kernel; CI does not do this — the committed mocks are authoritative for tests.)
Release
Releases are automated by the GitHub Release Workflow on every push to
main:
- Tests + coverage must pass.
python-semantic-releaseparses commit messages (emoji parser) to decide the next version::boom:→ major bump:sparkles:(and friends) → minor bump:bug:,:ambulance:, etc. → patch bump
- On a release, the package is published to PyPI and a GitHub Release is created.
License
MIT
Metadata
Release files for sysml-windstorm 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sysml_windstorm-0.6.0.tar.gz | 20.3 kB | Without provenance | Details for sysml_windstorm-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sysml_windstorm-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for sysml_windstorm-0.6.0-py3-none-any.whl |
Total release size: 41.9 kB
Release files / sysml_windstorm-0.6.0.tar.gz
| Download URL | sysml_windstorm-0.6.0.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a7dc251a5a3e9be1d7f9a6b9ef5ea0110a4be40083ecaabee8467e06525a4e0
|
|
BLAKE2b-256 checksum How to use checksums |
2b151a8d1ef9bfbfb48408913cfeaef9749beb46071c0c5b62b0266762caae23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / sysml_windstorm-0.6.0-py3-none-any.whl
| Download URL | sysml_windstorm-0.6.0-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02aa7e7de4909bf2dab1f6033331b5757f0a48d8faad64cff127a79329d8592d
|
|
BLAKE2b-256 checksum How to use checksums |
5ffbd59ed7e0e620cd67b0c4afe7d3d82a7f7aed08cec22ccee38b3a675c67c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for sysml-windstorm 0.6.0
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.