This release is a pre-release and may not be stable for production use.
Overview
SAF Templates is a collection of Cookiecutter-based templates that help developers quickly scaffold common components for SAF-based solution applications. Instead of writing boilerplate code from scratch, developers can generate ready-to-use solution steps, pages, and supporting files through the SAF CLI, then customize them to fit their specific use case.
The package currently ships the following built-in step templates:
Template name |
Description |
|---|---|
calculator-step |
A step that performs basic calculator operations. |
hps-simple-job-step |
A step that submits a simple job to HPS. |
hps-parametric-study-step |
A step that runs a parametric study on HPS. |
instance-mgmt-geometry-step |
A step for basic Geometry instance management. |
Beyond the built-in templates, SAF Templates supports a plugin architecture that allows developers and teams to create, package, and share their own template repositories. This means you can build reusable templates tailored to your organization’s patterns and distribute them across projects or to the wider community.
Contributions are welcomed. If you have a useful template that could benefit other SAF developers, consider contributing it back to the project or publishing your own template plugin repository.
Installation
SAF Templates comes bundled with SAF CLI since SAF CLI version 3.7. However, it is mandatory to have SAF CLI version 4.0 or later installed to use the templates. Using previous versions of SAF CLI might produce unexpected results or even errors when attempting to add a step. This documentation assumes that SAF CLI version 4.0 or later is installed.
Use the following command if you want to manually install a newer version of the SAF Templates package. Make sure to install it in the python environment where SAF CLI is installed:
pip install ansys-saf-templates
Quick start
You can list the available templates by running:
saf templates
This will show all the templates available in ansys-saf-templates as well as any additional templates from installed plugins.
Add a new step to your solution using the SAF CLI command:
saf add-step <my_solution>
The CLI will interactively guide you through selecting a template and providing the required parameters. Otherwise, you can directly pass all the necessary information as command-line arguments:
saf add-step <my_solution> --step-name <step_name> --ui-framework <ui_framework> --template <template_name>
Documentation
The official documentation contains:
Overview — What SAF Templates is and its key features.
User guide — Installation, prerequisites, and usage instructions.
Template gallery — Browse all available templates.
Contribute — How to add your own templates.
Troubleshooting
For troubleshooting or reporting issues, open an issue in the project repository.
Follow these steps to report an issue:
Go to the project repository.
Click on the Issues tab.
Click on the New Issue button.
Provide a clear and detailed description of the issue you are facing.
Include any relevant error messages, code snippets, or screenshots.
Additionally, you can refer to the official documentation for additional resources and troubleshooting guides.
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansys_saf_templates-0.2.dev2.tar.gz.
File metadata
- Download URL: ansys_saf_templates-0.2.dev2.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1796916c19a5c99ddcf06dd426fee22e07ad5e04a616c832d12c83431ca704bf
|
|
| MD5 |
f834da2b49c9c45a690e34e325131331
|
|
| BLAKE2b-256 |
fb086bea026c0b966a1176a3894b47253eb5e6878368002cdd4b0e7ac33359bf
|
Provenance
The following attestation bundles were made for ansys_saf_templates-0.2.dev2.tar.gz:
Publisher:
ci_cd_release.yml on ansys/saf-templates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_saf_templates-0.2.dev2.tar.gz -
Subject digest:
1796916c19a5c99ddcf06dd426fee22e07ad5e04a616c832d12c83431ca704bf - Sigstore transparency entry: 1926734878
- Sigstore integration time:
-
Permalink:
ansys/saf-templates@c0ea85cbe000b924c88e536caf88fbb49a810d8b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ansys
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd_release.yml@c0ea85cbe000b924c88e536caf88fbb49a810d8b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ansys_saf_templates-0.2.dev2-py3-none-any.whl.
File metadata
- Download URL: ansys_saf_templates-0.2.dev2-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb7244eec065b93e0d83526c6804d6ef5f1640b71d8bd3a8839783d6fd443a7
|
|
| MD5 |
cc0b8aabb0a4e848577b32e58b12ca55
|
|
| BLAKE2b-256 |
d9f90ee1110103a2ee01206829ffc614afd4d2ecfb42adeaefcc13d54cf61e36
|
Provenance
The following attestation bundles were made for ansys_saf_templates-0.2.dev2-py3-none-any.whl:
Publisher:
ci_cd_release.yml on ansys/saf-templates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_saf_templates-0.2.dev2-py3-none-any.whl -
Subject digest:
adb7244eec065b93e0d83526c6804d6ef5f1640b71d8bd3a8839783d6fd443a7 - Sigstore transparency entry: 1926734983
- Sigstore integration time:
-
Permalink:
ansys/saf-templates@c0ea85cbe000b924c88e536caf88fbb49a810d8b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ansys
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd_release.yml@c0ea85cbe000b924c88e536caf88fbb49a810d8b -
Trigger Event:
workflow_dispatch
-
Statement type: