Skip to main content
Pre-release

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

Python PyPI GH-CI Codecov Apache Ruff

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

ansys_saf_templates-0.2.dev2.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_saf_templates-0.2.dev2-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

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

Hashes for ansys_saf_templates-0.2.dev2.tar.gz
Algorithm Hash digest
SHA256 1796916c19a5c99ddcf06dd426fee22e07ad5e04a616c832d12c83431ca704bf
MD5 f834da2b49c9c45a690e34e325131331
BLAKE2b-256 fb086bea026c0b966a1176a3894b47253eb5e6878368002cdd4b0e7ac33359bf

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_saf_templates-0.2.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_saf_templates-0.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 adb7244eec065b93e0d83526c6804d6ef5f1640b71d8bd3a8839783d6fd443a7
MD5 cc0b8aabb0a4e848577b32e58b12ca55
BLAKE2b-256 d9f90ee1110103a2ee01206829ffc614afd4d2ecfb42adeaefcc13d54cf61e36

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page