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

Owner

calculator-step

A step that performs basic calculator operations.

SAF-SDK

hps-simple-job-step

A step that submits a simple job to HPS.

SAF-SDK

hps-parametric-study-step

A step that runs a parametric study on HPS.

SAF-SDK

instance-mgmt-geometry-step

A step for basic Geometry instance management.

SAF-SDK

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansys_saf_templates-0.2.dev4.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.dev4.tar.gz
Algorithm Hash digest
SHA256 2c45dfcc408df214d9562997e991bf50ecf793e11dd57a4e4d9e830dc2963e8e
MD5 00c47116d47caeafa6a1d165324a83cc
BLAKE2b-256 75d69b47c05233ee956ffec7a7ac04f34ed0d54919f4f6b5f789973956edadb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for ansys_saf_templates-0.2.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc42f1ff1857a3dc560161b3587e44bb717e15d3b0900e5cb52cc1fcd9942432
MD5 9f057d2e7ee24d3f1de7b14de22023fd
BLAKE2b-256 30776acf2d58dd77d62919309b3ad279cc0599a091608caa221f2846f14f603d

See more details on using hashes here.

Provenance

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