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.1 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.1 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.dev3.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.dev3-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file ansys_saf_templates-0.2.dev3.tar.gz.

File metadata

  • Download URL: ansys_saf_templates-0.2.dev3.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.dev3.tar.gz
Algorithm Hash digest
SHA256 14755712bb8d935a0cdb740b611da8553ebc36acb823f5241469dd86c95ffaee
MD5 a28c4ddd9b150dc3cb8bf9dd046bd0e9
BLAKE2b-256 4effff43f0af533afbd5a01ca2130db3ce308ab96315b872c225b1df3d865017

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_saf_templates-0.2.dev3.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.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_saf_templates-0.2.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6d827b254f4a5feddf8ef3f24b43902e6eeb991a0899c05755cb6b6993ed8e
MD5 e1adcb7c1190e7711a072f74d00d039b
BLAKE2b-256 65f1844506346f077605ee34f1deebafece2eb35ff1bfaf9c081f280dcd0b138

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_saf_templates-0.2.dev3-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