Skip to main content

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.0.tar.gz (25.8 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.0-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file ansys_saf_templates-0.2.0.tar.gz.

File metadata

  • Download URL: ansys_saf_templates-0.2.0.tar.gz
  • Upload date:
  • Size: 25.8 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.0.tar.gz
Algorithm Hash digest
SHA256 fac243256cfb885d889cab1b26cca66e41335cc66a2a85c5eafc1f9b6cb34e31
MD5 c71de32b773703a69f2ccdd77f88d015
BLAKE2b-256 bebf8240cdf2b70c855a080442852531056898129854179487a31b6835a406a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for ansys_saf_templates-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b76484fa697fef13f77dc56d0e8650659813c05a449f9f989085d83972b97053
MD5 03f9a5b45e21174ce17f41ed0acf8d87
BLAKE2b-256 b5ab07b7c211b45b6b97f5182a0d7f22a894a298ae9d85d26579fd1ae233896a

See more details on using hashes here.

Provenance

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